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

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Mon Mar 23 09:00:39 CET 2009


Revision: 39623
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39623&view=rev
Author:   peres001
Date:     2009-03-23 08:00:39 +0000 (Mon, 23 Mar 2009)

Log Message:
-----------
Implemented MOVE script instruction.

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

Modified: scummvm/trunk/engines/parallaction/exec_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/exec_br.cpp	2009-03-23 00:56:05 UTC (rev 39622)
+++ scummvm/trunk/engines/parallaction/exec_br.cpp	2009-03-23 08:00:39 UTC (rev 39623)
@@ -447,7 +447,10 @@
 
 
 DECLARE_INSTRUCTION_OPCODE(move) {
-	warning("Parallaction_br::instOp_move not yet implemented");
+	// NOTE: I couldn't find evidence of scripts containing this instruction being used
+	InstructionPtr inst =*ctxt._inst;
+	_vm->scheduleWalk(inst->_opA.getValue(), inst->_opB.getValue(), false);
+	ctxt._suspend = true;
 }
 
 

Modified: scummvm/trunk/engines/parallaction/walk.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/walk.cpp	2009-03-23 00:56:05 UTC (rev 39622)
+++ scummvm/trunk/engines/parallaction/walk.cpp	2009-03-23 08:00:39 UTC (rev 39623)
@@ -437,6 +437,10 @@
 }
 
 void PathWalker_BR::stopFollower() {
+	if (_follower._active) {
+		uint32 frame = _follower._a->getF();
+		_follower._a->setF((frame/9) * 9);
+	}
 	_follower._a.reset();
 	_follower._active = 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