From b3988d964a2f19e7cf2319c67a4dc0fbc726c25b Mon Sep 17 00:00:00 2001 From: Desour Date: Sat, 28 Oct 2023 15:20:55 +0200 Subject: [PATCH] Sounds: Do not fade paused sounds --- src/client/sound/playing_sound.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/sound/playing_sound.cpp b/src/client/sound/playing_sound.cpp index 11aee80e3..a1570d42f 100644 --- a/src/client/sound/playing_sound.cpp +++ b/src/client/sound/playing_sound.cpp @@ -179,6 +179,9 @@ bool PlayingSound::doFade(f32 dtime) noexcept if (!m_fade_state || isDead()) return false; + if (getState() == AL_PAUSED) + return true; + FadeState &fade = *m_fade_state; assert(fade.step != 0.0f);