summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-30 20:45:19 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-30 20:45:19 +0200
commitcb72fee9410c4cd41bcd35abd17428f2b864e599 (patch)
treec661f2ae7224eaed6dce7751c6bfa518706f66d0
parentPause radio when game is paused (diff)
downloadre3-cb72fee9410c4cd41bcd35abd17428f2b864e599.tar
re3-cb72fee9410c4cd41bcd35abd17428f2b864e599.tar.gz
re3-cb72fee9410c4cd41bcd35abd17428f2b864e599.tar.bz2
re3-cb72fee9410c4cd41bcd35abd17428f2b864e599.tar.lz
re3-cb72fee9410c4cd41bcd35abd17428f2b864e599.tar.xz
re3-cb72fee9410c4cd41bcd35abd17428f2b864e599.tar.zst
re3-cb72fee9410c4cd41bcd35abd17428f2b864e599.zip
-rw-r--r--src/audio/MusicManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp
index 13fba08c..e569f8c7 100644
--- a/src/audio/MusicManager.cpp
+++ b/src/audio/MusicManager.cpp
@@ -315,8 +315,10 @@ cMusicManager::ChangeMusicMode(uint8 mode)
#ifdef PAUSE_RADIO_IN_FRONTEND
// rewind those streams we weren't listening right now
- for( uint32 i = STREAMED_SOUND_RADIO_WILD; i < STREAMED_SOUND_CUTSCENE_ASS_1; i++ )
+ for( uint32 i = STREAMED_SOUND_RADIO_WILD; i < STREAMED_SOUND_CUTSCENE_ASS_1; i++ ) {
m_aTracks[i].m_nPosition = GetTrackStartPos(i);
+ m_aTracks[i].m_nLastPosCheckTimer = CTimer::GetTimeInMillisecondsPauseMode();
+ }
#endif
break;