aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2008-02-06 13:44:31 +0000
committerNicola Mettifogo2008-02-06 13:44:31 +0000
commit782563f7492fd65cbc81b3f1bbc13cddd3c04480 (patch)
tree7a4ef7b9f2708075c014c1ddc72245eed770c61f /engines
parent249c0b0a054aeef0fcd85f8a0d3b924bac1bcaaf (diff)
downloadscummvm-rg350-782563f7492fd65cbc81b3f1bbc13cddd3c04480.tar.gz
scummvm-rg350-782563f7492fd65cbc81b3f1bbc13cddd3c04480.tar.bz2
scummvm-rg350-782563f7492fd65cbc81b3f1bbc13cddd3c04480.zip
Implemented some more opcodes in BRA. Animations should now be visible in most locations.
svn-id: r30806
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/exec_br.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp
index a0a742e779..8954b98a99 100644
--- a/engines/parallaction/exec_br.cpp
+++ b/engines/parallaction/exec_br.cpp
@@ -122,12 +122,31 @@ DECLARE_COMMAND_OPCODE(close) {
DECLARE_COMMAND_OPCODE(on) {
- warning("Parallaction_br::cmdOp_on not yet implemented");
+ CommandData *data = &_cmdRunCtxt.cmd->u;
+ Zone *z = data->_zone;
+
+ if (z) {
+ z->_flags |= kFlagsActive;
+ z->_flags &= ~kFlagsRemove;
+
+ if ((z->_type & 0xFFFF) & kZoneGet) {
+ _gfx->showGfxObj(z->u.get->gfxobj, true);
+ }
+ }
}
DECLARE_COMMAND_OPCODE(off) {
- warning("Parallaction_br::cmdOp_off not yet implemented");
+ CommandData *data = &_cmdRunCtxt.cmd->u;
+ Zone *z = data->_zone;
+
+ if (z) {
+ z->_flags |= kFlagsRemove;
+
+ if ((z->_type & 0xFFFF) & kZoneGet) {
+ _gfx->showGfxObj(z->u.get->gfxobj, false);
+ }
+ }
}