mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Sounds: Do not fade paused sounds
This commit is contained in:
@@ -179,6 +179,9 @@ bool PlayingSound::doFade(f32 dtime) noexcept
|
|||||||
if (!m_fade_state || isDead())
|
if (!m_fade_state || isDead())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (getState() == AL_PAUSED)
|
||||||
|
return true;
|
||||||
|
|
||||||
FadeState &fade = *m_fade_state;
|
FadeState &fade = *m_fade_state;
|
||||||
assert(fade.step != 0.0f);
|
assert(fade.step != 0.0f);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user