summaryrefslogtreecommitdiffstats
path: root/src/audio/MusicManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-18 14:31:58 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-18 14:31:58 +0200
commit5c562c3adc06044a17cabb9c4785795b0d2d7fa7 (patch)
treeb3b4c2c43f26d5c2615828f05a2cbacdd4bcf67a /src/audio/MusicManager.cpp
parentupdate librw (diff)
downloadre3-5c562c3adc06044a17cabb9c4785795b0d2d7fa7.tar
re3-5c562c3adc06044a17cabb9c4785795b0d2d7fa7.tar.gz
re3-5c562c3adc06044a17cabb9c4785795b0d2d7fa7.tar.bz2
re3-5c562c3adc06044a17cabb9c4785795b0d2d7fa7.tar.lz
re3-5c562c3adc06044a17cabb9c4785795b0d2d7fa7.tar.xz
re3-5c562c3adc06044a17cabb9c4785795b0d2d7fa7.tar.zst
re3-5c562c3adc06044a17cabb9c4785795b0d2d7fa7.zip
Diffstat (limited to '')
-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 9872589a..0752a5d8 100644
--- a/src/audio/MusicManager.cpp
+++ b/src/audio/MusicManager.cpp
@@ -363,14 +363,14 @@ cMusicManager::GetRadioInCar(void)
CVehicle *veh = FindPlayerVehicle();
if (veh != nil){
if (UsesPoliceRadio(veh)) {
- if (m_nRadioInCar == NO_TRACK || (CReplay::IsPlayingBack() && AudioManager.m_nUserPause == 0))
+ if (m_nRadioInCar == NO_TRACK || (CReplay::IsPlayingBack() && !AudioManager.m_nUserPause))
return POLICE_RADIO;
return m_nRadioInCar;
} else return veh->m_nRadioStation;
}
}
- if (m_nRadioInCar == NO_TRACK || (CReplay::IsPlayingBack() && AudioManager.m_nUserPause == 0))
+ if (m_nRadioInCar == NO_TRACK || (CReplay::IsPlayingBack() && !AudioManager.m_nUserPause))
return RADIO_OFF;
return m_nRadioInCar;
}