diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-08-19 10:47:03 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-08-19 10:47:03 +0200 |
commit | 136b25133d67e9765a954a576ea272c4a0185c52 (patch) | |
tree | 654021d86604d114e8d2bc34b5c535406541d04c /src/audio/MusicManager.cpp | |
parent | disable movies by default; update librw (diff) | |
parent | Add AUDIO_REVERB define (diff) | |
download | re3-136b25133d67e9765a954a576ea272c4a0185c52.tar re3-136b25133d67e9765a954a576ea272c4a0185c52.tar.gz re3-136b25133d67e9765a954a576ea272c4a0185c52.tar.bz2 re3-136b25133d67e9765a954a576ea272c4a0185c52.tar.lz re3-136b25133d67e9765a954a576ea272c4a0185c52.tar.xz re3-136b25133d67e9765a954a576ea272c4a0185c52.tar.zst re3-136b25133d67e9765a954a576ea272c4a0185c52.zip |
Diffstat (limited to 'src/audio/MusicManager.cpp')
-rw-r--r-- | src/audio/MusicManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp index 74d86334..c9230e02 100644 --- a/src/audio/MusicManager.cpp +++ b/src/audio/MusicManager.cpp @@ -263,7 +263,7 @@ cMusicManager::GetRadioInCar(void) CVehicle* veh = AudioManager.FindVehicleOfPlayer(); if (veh != nil) { if (UsesPoliceRadio(veh) || UsesTaxiRadio(veh)) { - if (m_nRadioInCar == NO_TRACK || (CReplay::IsPlayingBack() && AudioManager.m_nUserPause == 0)) + if (m_nRadioInCar == NO_TRACK || (CReplay::IsPlayingBack() && !AudioManager.m_nUserPause)) return STREAMED_SOUND_RADIO_POLICE; return m_nRadioInCar; } @@ -271,7 +271,7 @@ cMusicManager::GetRadioInCar(void) } } - 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; } @@ -461,7 +461,7 @@ cMusicManager::ServiceFrontEndMode() } else { if (m_nPlayingTrack == STREAMED_SOUND_RADIO_MP3_PLAYER) SampleManager.StartStreamedFile(STREAMED_SOUND_RADIO_MP3_PLAYER, 0); - else if (m_nPlayingTrack == STREAMED_SOUND_MISSION_COMPLETED && AudioManager.m_nUserPause == 0) + else if (m_nPlayingTrack == STREAMED_SOUND_MISSION_COMPLETED && !AudioManager.m_nUserPause) ChangeMusicMode(MUSICMODE_GAME); } } else { |