mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Sounds: Do not fade paused sounds
This commit is contained in:
parent
2ad17136dc
commit
b3988d964a
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue