Skip to content

Commit

Permalink
Sounds: Do not fade paused sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Desour committed Oct 28, 2023
1 parent 2ad1713 commit b3988d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/sound/playing_sound.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit b3988d9

Please sign in to comment.