diff options
author | Max Horn | 2003-05-03 12:41:35 +0000 |
---|---|---|
committer | Max Horn | 2003-05-03 12:41:35 +0000 |
commit | 00d796e45183f852e03766228f5b0d9ec4d9795d (patch) | |
tree | 487f2b5299fa803c9b72675f0a9e6c81d6f23e84 | |
parent | 24b3b32b16e0049fa06e7cde3536cc682ccab712 (diff) | |
download | scummvm-rg350-00d796e45183f852e03766228f5b0d9ec4d9795d.tar.gz scummvm-rg350-00d796e45183f852e03766228f5b0d9ec4d9795d.tar.bz2 scummvm-rg350-00d796e45183f852e03766228f5b0d9ec4d9795d.zip |
slightly better hack because it will work with loaded games, too, and doesn't use any evil static vars
svn-id: r7282
-rw-r--r-- | scumm/sound.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 1ac6a5686d..1461f98bfb 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -431,11 +431,8 @@ void Sound::playSound(int soundID) { // This hack relays on the fact that we currently don't support SFX // in these games, only music. Once we add SFX support, we'll have to // revise it / replace it by a proper fix. - static int lastSound = -1; if (ptr) { - if (lastSound > 0) - stopSound(lastSound); - lastSound = soundID; + _scumm->_imuse->stop_all_sounds(); } } |