diff options
Diffstat (limited to 'engines')
-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) { |