From 00d796e45183f852e03766228f5b0d9ec4d9795d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 3 May 2003 12:41:35 +0000 Subject: slightly better hack because it will work with loaded games, too, and doesn't use any evil static vars svn-id: r7282 --- scumm/sound.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'scumm/sound.cpp') 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(); } } -- cgit v1.2.3