mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 17:03:13 +00:00
MOHAWK: Finish implementation of Riven's stopSound() opcode
This commit is contained in:
parent
5174832e31
commit
a495632e07
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user