aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorMatthew Hoops2011-06-14 10:46:48 -0400
committerMatthew Hoops2011-06-14 10:46:48 -0400
commita495632e07e13ab0aaa2251681451393030c00ca (patch)
treedb9c23d3fae5dcfcf9fb1d8a2b29d2c88e87738e /engines/mohawk
parent5174832e314b4c63ac2a7fd89c09f48fafc68a69 (diff)
downloadscummvm-rg350-a495632e07e13ab0aaa2251681451393030c00ca.tar.gz
scummvm-rg350-a495632e07e13ab0aaa2251681451393030c00ca.tar.bz2
scummvm-rg350-a495632e07e13ab0aaa2251681451393030c00ca.zip
MOHAWK: Finish implementation of Riven's stopSound() opcode
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/riven_scripts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp
index 8abce10f3b..161acb665f 100644
--- a/engines/mohawk/riven_scripts.cpp
+++ b/engines/mohawk/riven_scripts.cpp
@@ -407,14 +407,14 @@ void RivenScript::stopSound(uint16 op, uint16 argc, uint16 *argv) {
return;
// The argument is a bitflag for the setting.
- // bit 0 is normal sound stopping (unused)
+ // bit 0 is normal sound stopping
// bit 1 is ambient sound stopping
// Having no flags set means clear all
if (argv[0] & 2 || argv[0] == 0)
_vm->_sound->stopAllSLST();
- if (argv[0] & 1)
- warning("Unhandled stopSound() flag");
+ if (argv[0] & 1 || argv[0] == 0)
+ _vm->_sound->stopSound();
}
// Command 13: set mouse cursor (cursor_id)