[Scummvm-cvs-logs] SF.net SVN: scummvm:[51589] scummvm/trunk/engines/sci/sound/soundcmd.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sun Aug 1 21:57:03 CEST 2010


Revision: 51589
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51589&view=rev
Author:   m_kiewitz
Date:     2010-08-01 19:57:03 +0000 (Sun, 01 Aug 2010)

Log Message:
-----------
SCI: kDoSound(mute) behaviour change

Modified Paths:
--------------
    scummvm/trunk/engines/sci/sound/soundcmd.cpp

Modified: scummvm/trunk/engines/sci/sound/soundcmd.cpp
===================================================================
--- scummvm/trunk/engines/sci/sound/soundcmd.cpp	2010-08-01 19:51:23 UTC (rev 51588)
+++ scummvm/trunk/engines/sci/sound/soundcmd.cpp	2010-08-01 19:57:03 UTC (rev 51589)
@@ -263,12 +263,13 @@
 }
 
 reg_t SoundCommandParser::kDoSoundMute(int argc, reg_t *argv, reg_t acc) {
+	uint16 previousState = _music->soundGetSoundOn();
 	if (argc > 0) {
 		debugC(2, kDebugLevelSound, "kDoSound(mute): %d", argv[0].toUint16());
 		_music->soundSetSoundOn(argv[0].toUint16());
 	}
 
-	return make_reg(0, _music->soundGetSoundOn());
+	return make_reg(0, previousState);
 }
 
 reg_t SoundCommandParser::kDoSoundMasterVolume(int argc, reg_t *argv, reg_t acc) {


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