summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-12 18:07:51 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:32:44 +0200
commita446dbefaa184dfeba5a0b9538b221f330e8703d (patch)
tree39558e80d888bbf7fa72bdf20e1177bef68cc307 /src
parentRemove frameTime, fix pause mode timer (diff)
downloadre3-a446dbefaa184dfeba5a0b9538b221f330e8703d.tar
re3-a446dbefaa184dfeba5a0b9538b221f330e8703d.tar.gz
re3-a446dbefaa184dfeba5a0b9538b221f330e8703d.tar.bz2
re3-a446dbefaa184dfeba5a0b9538b221f330e8703d.tar.lz
re3-a446dbefaa184dfeba5a0b9538b221f330e8703d.tar.xz
re3-a446dbefaa184dfeba5a0b9538b221f330e8703d.tar.zst
re3-a446dbefaa184dfeba5a0b9538b221f330e8703d.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio/PolRadio.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/audio/PolRadio.cpp b/src/audio/PolRadio.cpp
index 4eae169d..235a53d3 100644
--- a/src/audio/PolRadio.cpp
+++ b/src/audio/PolRadio.cpp
@@ -161,7 +161,11 @@ cAudioManager::ServicePoliceRadio()
if(!crimeReport) {
if(wantedLevel != 0) {
if(nLastSeen != 0) {
+#ifdef FIX_BUGS
+ nLastSeen -= CTimer::GetLogicalFramesPassed();
+#else
--nLastSeen;
+#endif
} else {
nLastSeen = m_anRandomTable[1] % 1000 + 2000;
SetupSuspectLastSeenReport();
@@ -199,7 +203,11 @@ cAudioManager::ServicePoliceRadioChannel(uint8 wantedLevel)
}
if (m_sPoliceRadioQueue.policeChannelTimer == 0) bChannelOpen = FALSE;
if (cWait) {
+#ifdef FIX_BUGS
+ cWait -= CTimer::GetLogicalFramesPassed();
+#else
--cWait;
+#endif
return;
}
if (g_nMissionAudioSfx != TOTAL_AUDIO_SAMPLES && !bChannelOpen) {