summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-27 19:48:47 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-27 19:48:47 +0200
commit3a5a12288755a90cf274b04c591e4ba38bf8f1c7 (patch)
treec6fd28ba12923a7190e4f409691d5b7318adfc1e /src
parentRwCameraGetCurrentCamera (diff)
downloadre3-3a5a12288755a90cf274b04c591e4ba38bf8f1c7.tar
re3-3a5a12288755a90cf274b04c591e4ba38bf8f1c7.tar.gz
re3-3a5a12288755a90cf274b04c591e4ba38bf8f1c7.tar.bz2
re3-3a5a12288755a90cf274b04c591e4ba38bf8f1c7.tar.lz
re3-3a5a12288755a90cf274b04c591e4ba38bf8f1c7.tar.xz
re3-3a5a12288755a90cf274b04c591e4ba38bf8f1c7.tar.zst
re3-3a5a12288755a90cf274b04c591e4ba38bf8f1c7.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 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;
}