summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-27 19:50:40 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-27 19:50:40 +0200
commit53ac163a3e3351a3aec9d4c5042b41be30f77857 (patch)
tree9c9d6c54160fd64b6a434e0463e5ce2b8fee94e2 /src
parentcrash fix (diff)
parentFix city sound playing on restarting a new game (diff)
downloadre3-53ac163a3e3351a3aec9d4c5042b41be30f77857.tar
re3-53ac163a3e3351a3aec9d4c5042b41be30f77857.tar.gz
re3-53ac163a3e3351a3aec9d4c5042b41be30f77857.tar.bz2
re3-53ac163a3e3351a3aec9d4c5042b41be30f77857.tar.lz
re3-53ac163a3e3351a3aec9d4c5042b41be30f77857.tar.xz
re3-53ac163a3e3351a3aec9d4c5042b41be30f77857.tar.zst
re3-53ac163a3e3351a3aec9d4c5042b41be30f77857.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio/MusicManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp
index c1c6682a..940f41ce 100644
--- a/src/audio/MusicManager.cpp
+++ b/src/audio/MusicManager.cpp
@@ -302,14 +302,14 @@ cMusicManager::GetRadioInCar(void)
CVehicle *veh = FindPlayerVehicle();
if (veh != nil){
if (UsesPoliceRadio(veh)) {
- if (m_nRadioInCar == NO_STREAMED_SOUND || CReplay::IsPlayingBack() && AudioManager.m_nUserPause)
+ if (m_nRadioInCar == NO_STREAMED_SOUND || (CReplay::IsPlayingBack() && AudioManager.m_nUserPause == 0))
return POLICE_RADIO;
return m_nRadioInCar;
} else return veh->m_nRadioStation;
}
}
- if (m_nRadioInCar == NO_STREAMED_SOUND || CReplay::IsPlayingBack() && AudioManager.m_nUserPause)
+ if (m_nRadioInCar == NO_STREAMED_SOUND || (CReplay::IsPlayingBack() && AudioManager.m_nUserPause == 0))
return RADIO_OFF;
return m_nRadioInCar;
}