summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-04-18 12:20:20 +0200
committerFilip Gawin <filip.gawin@zoho.com>2020-04-18 12:20:20 +0200
commit3f32b69a79c2eb26f12e76b09a5923adf9e2fb3d (patch)
tree2b74b5d6079a8adc48a8d31e9772387099af3825
parentMerge branch 'master' of https://github.com/GTAmodding/re3 (diff)
downloadre3-3f32b69a79c2eb26f12e76b09a5923adf9e2fb3d.tar
re3-3f32b69a79c2eb26f12e76b09a5923adf9e2fb3d.tar.gz
re3-3f32b69a79c2eb26f12e76b09a5923adf9e2fb3d.tar.bz2
re3-3f32b69a79c2eb26f12e76b09a5923adf9e2fb3d.tar.lz
re3-3f32b69a79c2eb26f12e76b09a5923adf9e2fb3d.tar.xz
re3-3f32b69a79c2eb26f12e76b09a5923adf9e2fb3d.tar.zst
re3-3f32b69a79c2eb26f12e76b09a5923adf9e2fb3d.zip
Diffstat (limited to '')
-rw-r--r--src/audio/PoliceRadio.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/audio/PoliceRadio.cpp b/src/audio/PoliceRadio.cpp
index d9c6bfd7..c4946da6 100644
--- a/src/audio/PoliceRadio.cpp
+++ b/src/audio/PoliceRadio.cpp
@@ -1,15 +1,18 @@
#include "common.h"
#include "DMAudio.h"
+
#include "AudioManager.h"
+
#include "AudioSamples.h"
#include "MusicManager.h"
-#include "PoliceRadio.h"
#include "PlayerPed.h"
-#include "sampman.h"
-#include "Zones.h"
+#include "PoliceRadio.h"
+#include "Replay.h"
#include "Vehicle.h"
#include "World.h"
+#include "Zones.h"
+#include "sampman.h"
const int maxVolume = 127;
const int channels = ARRAY_SIZE(cAudioManager::m_asActiveSamples);
@@ -155,7 +158,8 @@ cAudioManager::ServicePoliceRadio()
if(!m_bUserPause) {
bool crimeReport = SetupCrimeReport();
#ifdef FIX_BUGS // Crash at 0x5fe6ef
- if(!FindPlayerPed() || !FindPlayerPed()->m_pWanted) return;
+ if(CReplay::IsPlayingBack() || !FindPlayerPed() || !FindPlayerPed()->m_pWanted)
+ return;
#endif
wantedLevel = FindPlayerPed()->m_pWanted->m_nWantedLevel;
if(!crimeReport) {