aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-08-01 19:57:03 +0000
committerMartin Kiewitz2010-08-01 19:57:03 +0000
commit55d7af07662802ad3bc04be6676aa2eb3932595e (patch)
tree831b9a8b40d22f8947d225d4af82a626ccb7be1c /engines
parentc8aabe77e8858b68c5458888a01e5aeb3f5ffb2d (diff)
downloadscummvm-rg350-55d7af07662802ad3bc04be6676aa2eb3932595e.tar.gz
scummvm-rg350-55d7af07662802ad3bc04be6676aa2eb3932595e.tar.bz2
scummvm-rg350-55d7af07662802ad3bc04be6676aa2eb3932595e.zip
SCI: kDoSound(mute) behaviour change
svn-id: r51589
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sound/soundcmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp
index bd88a5fca8..b12037065b 100644
--- a/engines/sci/sound/soundcmd.cpp
+++ b/engines/sci/sound/soundcmd.cpp
@@ -263,12 +263,13 @@ reg_t SoundCommandParser::kDoSoundResumeAfterRestore(int argc, reg_t *argv, reg_
}
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) {