diff options
author | Nicola Mettifogo | 2009-03-23 08:05:20 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2009-03-23 08:05:20 +0000 |
commit | 4f2e22e87ac7b7c8f4c0f1f104c47dc1b06962b9 (patch) | |
tree | 194e55e17adeb87c4e9af579662457a7959c3274 /engines/parallaction | |
parent | 5c714cb46eb7c94f1b98d726b635081363c74c98 (diff) | |
download | scummvm-rg350-4f2e22e87ac7b7c8f4c0f1f104c47dc1b06962b9.tar.gz scummvm-rg350-4f2e22e87ac7b7c8f4c0f1f104c47dc1b06962b9.tar.bz2 scummvm-rg350-4f2e22e87ac7b7c8f4c0f1f104c47dc1b06962b9.zip |
Partly implemented the STOP script instruction.
svn-id: r39624
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/exec_br.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp index c5e53f6a1d..397ab293fa 100644 --- a/engines/parallaction/exec_br.cpp +++ b/engines/parallaction/exec_br.cpp @@ -503,7 +503,13 @@ DECLARE_INSTRUCTION_OPCODE(endif) { DECLARE_INSTRUCTION_OPCODE(stop) { - warning("Parallaction_br::instOp_stop not yet implemented"); + ZonePtr z = (*ctxt._inst)->_z; + if (ACTIONTYPE(z) == kZoneHear) { + warning("Parallaction_br::instOp_stop not yet implemented for HEAR zones"); + // TODO: stop music or sound effects generated by a zone. + } else { + z->_flags &= ~kFlagsActing; + } } DECLARE_INSTRUCTION_OPCODE(loop) { |