diff options
author | Martin Kiewitz | 2010-08-01 19:57:03 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-01 19:57:03 +0000 |
commit | 55d7af07662802ad3bc04be6676aa2eb3932595e (patch) | |
tree | 831b9a8b40d22f8947d225d4af82a626ccb7be1c | |
parent | c8aabe77e8858b68c5458888a01e5aeb3f5ffb2d (diff) | |
download | scummvm-rg350-55d7af07662802ad3bc04be6676aa2eb3932595e.tar.gz scummvm-rg350-55d7af07662802ad3bc04be6676aa2eb3932595e.tar.bz2 scummvm-rg350-55d7af07662802ad3bc04be6676aa2eb3932595e.zip |
SCI: kDoSound(mute) behaviour change
svn-id: r51589
-rw-r--r-- | engines/sci/sound/soundcmd.cpp | 3 |
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) { |