summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-30 20:16:48 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-30 20:16:48 +0200
commitb1c9340fd39ecc7a101472f8eeb611ad67809073 (patch)
tree85703badc7d5656a74b9d5f13445da78cb73b5c3
parentfix some string sizes to be MAX_PATH (diff)
downloadre3-b1c9340fd39ecc7a101472f8eeb611ad67809073.tar
re3-b1c9340fd39ecc7a101472f8eeb611ad67809073.tar.gz
re3-b1c9340fd39ecc7a101472f8eeb611ad67809073.tar.bz2
re3-b1c9340fd39ecc7a101472f8eeb611ad67809073.tar.lz
re3-b1c9340fd39ecc7a101472f8eeb611ad67809073.tar.xz
re3-b1c9340fd39ecc7a101472f8eeb611ad67809073.tar.zst
re3-b1c9340fd39ecc7a101472f8eeb611ad67809073.zip
-rw-r--r--src/audio/AudioLogic.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 3ec40437..5ee5ddd1 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -9976,8 +9976,10 @@ cAudioManager::ProcessMissionAudioSlot(uint8 slot)
if (!m_nUserPause) {
if (nCheckPlayingDelay[slot]) {
--nCheckPlayingDelay[slot];
- } else if (GetMissionScriptPoliceAudioPlayingStatus() == PLAY_STATUS_FINISHED || m_sMissionAudio.m_nMissionAudioCounter[slot]-- == 0) {
+ } else if ((g_bMissionAudioLoadFailed[slot] && m_sMissionAudio.m_nMissionAudioCounter[slot]-- == 0) || GetMissionScriptPoliceAudioPlayingStatus() == PLAY_STATUS_FINISHED) {
m_sMissionAudio.m_nPlayStatus[slot] = PLAY_STATUS_FINISHED;
+ if (m_sMissionAudio.m_nSampleIndex[slot] >= STREAMED_SOUND_MISSION_MOB_01A && m_sMissionAudio.m_nSampleIndex[slot] <= STREAMED_SOUND_MISSION_MOB_99A)
+ m_sMissionAudio.m_bIsMobile[slot] = FALSE;
m_sMissionAudio.m_nSampleIndex[slot] = NO_SAMPLE;
SampleManager.StopStreamedFile(slot + 1);
m_sMissionAudio.m_nMissionAudioCounter[slot] = 0;