mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix stupid if test
This commit is contained in:
parent
73aab3ddb2
commit
ea4158e8ac
@ -42,7 +42,7 @@ CSound::StopAllSounds (bool immediat, const std::set<Sint32> * except)
|
||||
if (Mix_Playing (i + 1) == SDL_TRUE)
|
||||
{
|
||||
/* FIXME: add support of fade out with emscripten */
|
||||
if (immediat && Platform::getType () == Platform::Type::SDL)
|
||||
if (immediat || Platform::getType () == Platform::Type::JS)
|
||||
Mix_HaltChannel (i + 1);
|
||||
else
|
||||
Mix_FadeOutChannel (i + 1, 500);
|
||||
|
Loading…
x
Reference in New Issue
Block a user