[Scummvm-cvs-logs] SF.net SVN: scummvm:[46699] scummvm/trunk/engines/sci/sfx/soundcmd.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Tue Dec 29 02:27:16 CET 2009
Revision: 46699
http://scummvm.svn.sourceforge.net/scummvm/?rev=46699&view=rev
Author: thebluegr
Date: 2009-12-29 01:27:15 +0000 (Tue, 29 Dec 2009)
Log Message:
-----------
Better checking for the cmdMuteSound and cmdVolume special cases
Modified Paths:
--------------
scummvm/trunk/engines/sci/sfx/soundcmd.cpp
Modified: scummvm/trunk/engines/sci/sfx/soundcmd.cpp
===================================================================
--- scummvm/trunk/engines/sci/sfx/soundcmd.cpp 2009-12-29 01:24:02 UTC (rev 46698)
+++ scummvm/trunk/engines/sci/sfx/soundcmd.cpp 2009-12-29 01:27:15 UTC (rev 46699)
@@ -213,8 +213,10 @@
// cmdMuteSound and cmdVolume do not operate on an object, but need the number of
// arguments passed. We load this in the value
- if (obj.isNull())
+ if (!strcmp(_soundCommands[command]->desc, "cmdMuteSound") ||
+ !strcmp(_soundCommands[command]->desc, "cmdVolume")) {
value = argc - 1; // minus the command
+ }
if (argc == 6) { // cmdSendMidi
byte channel = argv[2].toUint16() & 0xf;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list