1
0
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:
Mathieu Schroeter 2018-07-21 17:49:51 +02:00
parent 73aab3ddb2
commit ea4158e8ac

View File

@ -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);