summaryrefslogtreecommitdiffstats
path: root/src/audio/MusicManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-02 23:52:30 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-02 23:52:30 +0100
commit9ae3fac08ed431ec6fbf0bc2819824dbfecff691 (patch)
treef1219c79906a74773d81fecddfbc233d20a6bd86 /src/audio/MusicManager.cpp
parentFix uninitialized RadioStaticCounter (diff)
downloadre3-9ae3fac08ed431ec6fbf0bc2819824dbfecff691.tar
re3-9ae3fac08ed431ec6fbf0bc2819824dbfecff691.tar.gz
re3-9ae3fac08ed431ec6fbf0bc2819824dbfecff691.tar.bz2
re3-9ae3fac08ed431ec6fbf0bc2819824dbfecff691.tar.lz
re3-9ae3fac08ed431ec6fbf0bc2819824dbfecff691.tar.xz
re3-9ae3fac08ed431ec6fbf0bc2819824dbfecff691.tar.zst
re3-9ae3fac08ed431ec6fbf0bc2819824dbfecff691.zip
Diffstat (limited to 'src/audio/MusicManager.cpp')
-rw-r--r--src/audio/MusicManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp
index 6ebf37e5..d23105ee 100644
--- a/src/audio/MusicManager.cpp
+++ b/src/audio/MusicManager.cpp
@@ -991,6 +991,7 @@ cMusicManager::ServiceTrack(CVehicle *veh, CPed *ped)
}
} else if (AudioManager.ShouldDuckMissionAudio(0) || AudioManager.ShouldDuckMissionAudio(1)) {
SampleManager.SetStreamedVolumeAndPan(Min(m_nCurrentVolume, 25), 63, 0, 0);
+ nFramesSinceCutsceneEnded = 0;
} else {
if (nFramesSinceCutsceneEnded == -1)
volume = m_nCurrentVolume;