diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-27 20:48:47 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-27 20:48:47 +0300 |
commit | 3a5a12288755a90cf274b04c591e4ba38bf8f1c7 (patch) | |
tree | c6fd28ba12923a7190e4f409691d5b7318adfc1e /src/audio/MusicManager.cpp | |
parent | 1af4edd43a902b127b4c4f0f5bdd6596c886214d (diff) |
Fix city sound playing on restarting a new game
Diffstat (limited to 'src/audio/MusicManager.cpp')
-rw-r--r-- | src/audio/MusicManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp index 8e8e9c24..b8d6dc03 100644 --- a/src/audio/MusicManager.cpp +++ b/src/audio/MusicManager.cpp @@ -301,14 +301,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; } |