diff options
author | Martin Kiewitz | 2009-12-03 22:32:48 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-12-03 22:32:48 +0000 |
commit | e149a88b990bfad8d65e4780f22435d63e2c1f01 (patch) | |
tree | e4fb61cb3c6427aae0076e2168205279685cf1e6 /engines/sci | |
parent | c70a9e2cac5b26440310098a9f04623a1b84247c (diff) | |
download | scummvm-rg350-e149a88b990bfad8d65e4780f22435d63e2c1f01.tar.gz scummvm-rg350-e149a88b990bfad8d65e4780f22435d63e2c1f01.tar.bz2 scummvm-rg350-e149a88b990bfad8d65e4780f22435d63e2c1f01.zip |
SCI: Don't call SciMusic for volume changes when using old code
svn-id: r46247
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/sfx/soundcmd.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/sci/sfx/soundcmd.cpp b/engines/sci/sfx/soundcmd.cpp index 352f61c307..3b95ba28e3 100644 --- a/engines/sci/sfx/soundcmd.cpp +++ b/engines/sci/sfx/soundcmd.cpp @@ -479,9 +479,11 @@ void SoundCommandParser::cmdMuteSound(reg_t obj, SongHandle handle, int value) { } void SoundCommandParser::cmdVolume(reg_t obj, SongHandle handle, int value) { - if (_argc > 1) - _music->soundSetMasterVolume(obj.toSint16()); - _acc = make_reg(0, _music->soundGetMasterVolume()); + #ifndef USE_OLD_MUSIC_FUNCTIONS + if (_argc > 1) + _music->soundSetMasterVolume(obj.toSint16()); + _acc = make_reg(0, _music->soundGetMasterVolume()); + #endif } void SoundCommandParser::cmdFadeHandle(reg_t obj, SongHandle handle, int value) { |