summaryrefslogtreecommitdiffstats
path: root/src/audio/PolRadio.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-25 07:49:58 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-25 07:49:58 +0200
commitc8492ab5e00d458f50d053e6b4e7c8c7af4d32a9 (patch)
tree4e070d777e5fa2d947ba94ba6b2cba8f1afc92d3 /src/audio/PolRadio.cpp
parentAudio: fix PS2 ifdefs (diff)
downloadre3-c8492ab5e00d458f50d053e6b4e7c8c7af4d32a9.tar
re3-c8492ab5e00d458f50d053e6b4e7c8c7af4d32a9.tar.gz
re3-c8492ab5e00d458f50d053e6b4e7c8c7af4d32a9.tar.bz2
re3-c8492ab5e00d458f50d053e6b4e7c8c7af4d32a9.tar.lz
re3-c8492ab5e00d458f50d053e6b4e7c8c7af4d32a9.tar.xz
re3-c8492ab5e00d458f50d053e6b4e7c8c7af4d32a9.tar.zst
re3-c8492ab5e00d458f50d053e6b4e7c8c7af4d32a9.zip
Diffstat (limited to '')
-rw-r--r--src/audio/PolRadio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/PolRadio.cpp b/src/audio/PolRadio.cpp
index a88af72a..69392d18 100644
--- a/src/audio/PolRadio.cpp
+++ b/src/audio/PolRadio.cpp
@@ -124,7 +124,7 @@ cAudioManager::ServicePoliceRadio()
if(!m_bIsInitialised) return;
- if(!m_nUserPause) {
+ if(!m_bIsPaused) {
bool8 crimeReport = SetupCrimeReport();
#ifdef FIX_BUGS // Crash at 0x5fe6ef
if(CReplay::IsPlayingBack() || !FindPlayerPed() || !FindPlayerPed()->m_pWanted)
@@ -166,14 +166,14 @@ cAudioManager::ServicePoliceRadioChannel(uint8 wantedLevel)
if (!m_bIsInitialised) return;
- if (m_nUserPause) {
+ if (m_bIsPaused) {
if (SampleManager.GetChannelUsedFlag(CHANNEL_POLICE_RADIO)) SampleManager.StopChannel(CHANNEL_POLICE_RADIO);
if (g_nMissionAudioSfx != NO_SAMPLE && bMissionAudioPhysicalPlayingStatus == PLAY_STATUS_PLAYING &&
SampleManager.IsStreamPlaying(1)) {
SampleManager.PauseStream(TRUE, 1);
}
} else {
- if (m_nPreviousUserPause && g_nMissionAudioSfx != NO_SAMPLE &&
+ if (m_bWasPaused && g_nMissionAudioSfx != NO_SAMPLE &&
bMissionAudioPhysicalPlayingStatus == PLAY_STATUS_PLAYING) {
SampleManager.PauseStream(FALSE, 1);
}