[Scummvm-cvs-logs] SF.net SVN: scummvm: [30806] scummvm/trunk/engines/parallaction/exec_br.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Wed Feb 6 14:44:31 CET 2008


Revision: 30806
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30806&view=rev
Author:   peres001
Date:     2008-02-06 05:44:31 -0800 (Wed, 06 Feb 2008)

Log Message:
-----------
Implemented some more opcodes in BRA. Animations should now be visible in most locations.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/exec_br.cpp

Modified: scummvm/trunk/engines/parallaction/exec_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/exec_br.cpp	2008-02-06 13:44:01 UTC (rev 30805)
+++ scummvm/trunk/engines/parallaction/exec_br.cpp	2008-02-06 13:44:31 UTC (rev 30806)
@@ -122,12 +122,31 @@
 
 
 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);
+		}
+	}
 }
 
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list