summaryrefslogtreecommitdiffstats
path: root/src/audio/MusicManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-18 14:49:06 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-18 14:49:06 +0200
commita13089cd2e32d9d5f63ab1035d6eef03c45ce774 (patch)
tree229bee085a318ff3917dbf979636c00ee051f8af /src/audio/MusicManager.cpp
parentMerge pull request #1304 from AGraber/patch-1 (diff)
downloadre3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar.gz
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar.bz2
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar.lz
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar.xz
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.tar.zst
re3-a13089cd2e32d9d5f63ab1035d6eef03c45ce774.zip
Diffstat (limited to '')
-rw-r--r--src/audio/MusicManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp
index a099f10d..59cec9b3 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 {