From 857abe4c8bc353c2510a5c0b3351af3e0af4ca44 Mon Sep 17 00:00:00 2001 From: Jamieson Christian Date: Sat, 4 Mar 2006 19:35:38 +0000 Subject: Removed the default ignoreFadeouts parameter value for ImuseInternal's getSoundStatus method. The disposition of this method is going to be changing soon, and I'm getting confused by the assumptions being made by many of the calls to it. svn-id: r21080 --- engines/scumm/imuse/imuse.cpp | 6 +++--- engines/scumm/imuse/imuse_internal.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/scumm/imuse/imuse.cpp b/engines/scumm/imuse/imuse.cpp index ca56d72455..6ccea8e53b 100644 --- a/engines/scumm/imuse/imuse.cpp +++ b/engines/scumm/imuse/imuse.cpp @@ -233,7 +233,7 @@ bool IMuseInternal::startSound(int sound) { int i; ImTrigger *trigger = _snm_triggers; for (i = ARRAYSIZE(_snm_triggers); i; --i, ++trigger) { - if (trigger->sound && trigger->id && trigger->command[0] == 8 && trigger->command[1] == sound && getSoundStatus(trigger->sound)) + if (trigger->sound && trigger->id && trigger->command[0] == 8 && trigger->command[1] == sound && getSoundStatus(trigger->sound,true)) return false; } @@ -766,7 +766,7 @@ int32 IMuseInternal::doCommand(int numargs, int a[]) { } return -1; case 13: - return getSoundStatus(a[1]); + return getSoundStatus(a[1], true); case 14: // Sam and Max: Parameter fade player = findActivePlayer(a[1]); @@ -1003,7 +1003,7 @@ int32 IMuseInternal::ImSetTrigger(int sound, int id, int a, int b, int c, int d, // NOTE: We ONLY do this if the sound that will trigger the command is actually // playing. Otherwise, there's a problem when exiting and re-entering the // Bumpusville mansion. Ref Bug #780918. - if (trig->command[0] == 8 && getSoundStatus(trig->command[1]) && getSoundStatus(sound)) + if (trig->command[0] == 8 && getSoundStatus(trig->command[1],true) && getSoundStatus(sound,true)) stopSound(trig->command[1]); return 0; } diff --git a/engines/scumm/imuse/imuse_internal.h b/engines/scumm/imuse/imuse_internal.h index 45e1b89a4a..8bd19cee7b 100644 --- a/engines/scumm/imuse/imuse_internal.h +++ b/engines/scumm/imuse/imuse_internal.h @@ -456,7 +456,7 @@ public: bool startSound(int sound); int stopSound(int sound); int stopAllSounds(); - int getSoundStatus(int sound, bool ignoreFadeouts = true) const; + int getSoundStatus(int sound, bool ignoreFadeouts) const; int getMusicTimer() const; int32 doCommand (int a, int b, int c, int d, int e, int f, int g, int h); int32 doCommand (int numargs, int args[]); -- cgit v1.2.3