From ea4158e8acd2217fb860eb357a7de53065d54d4e Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Sat, 21 Jul 2018 17:49:51 +0200 Subject: [PATCH] Fix stupid if test --- src/sound.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound.cxx b/src/sound.cxx index 3626529..458ab6e 100644 --- a/src/sound.cxx +++ b/src/sound.cxx @@ -42,7 +42,7 @@ CSound::StopAllSounds (bool immediat, const std::set * 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);