diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-10-05 12:59:40 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-10-05 12:59:40 +0200 |
commit | 6f3f581d8acbd9581407bf9701afd2c7d06494f7 (patch) | |
tree | 2e2a496914a3a346e16c5cea9ab853959c15674e /src/audio/MusicManager.cpp | |
parent | Fix Linux audio path (diff) | |
download | re3-6f3f581d8acbd9581407bf9701afd2c7d06494f7.tar re3-6f3f581d8acbd9581407bf9701afd2c7d06494f7.tar.gz re3-6f3f581d8acbd9581407bf9701afd2c7d06494f7.tar.bz2 re3-6f3f581d8acbd9581407bf9701afd2c7d06494f7.tar.lz re3-6f3f581d8acbd9581407bf9701afd2c7d06494f7.tar.xz re3-6f3f581d8acbd9581407bf9701afd2c7d06494f7.tar.zst re3-6f3f581d8acbd9581407bf9701afd2c7d06494f7.zip |
Diffstat (limited to 'src/audio/MusicManager.cpp')
-rw-r--r-- | src/audio/MusicManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp index 5c1414ad..fde92590 100644 --- a/src/audio/MusicManager.cpp +++ b/src/audio/MusicManager.cpp @@ -161,10 +161,10 @@ cMusicManager::SetStartingTrackPositions(uint8 isNewGameTimer) if (i < STREAMED_SOUND_CITY_AMBIENT && isNewGameTimer) m_aTracks[i].m_nPosition = NewGameRadioTimers[i]; else if (i < STREAMED_SOUND_ANNOUNCE_BRIDGE_CLOSED) - m_aTracks[i].m_nPosition = pos * AudioManager.GetRandomNumber(i % 5) % m_aTracks[i].m_nLength; + m_aTracks[i].m_nPosition = (pos * AudioManager.GetRandomNumber(i % 5)) % m_aTracks[i].m_nLength; else m_aTracks[i].m_nPosition = 0; - + m_aTracks[i].m_nLastPosCheckTimer = CTimer::GetTimeInMillisecondsPauseMode(); } } @@ -1311,4 +1311,4 @@ cMusicManager::ChangeRadioChannel() // these two are empty void cMusicManager::Enable() {} -void cMusicManager::Disable() {}
\ No newline at end of file +void cMusicManager::Disable() {} |