Implemented MOVE script instruction.

svn-id: r39623
This commit is contained in:
Nicola Mettifogo 2009-03-23 08:00:39 +00:00
parent 71f42a9549
commit 5c714cb46e
2 changed files with 8 additions and 1 deletions

View File

@ -447,7 +447,10 @@ DECLARE_INSTRUCTION_OPCODE(process) {
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;
}

View File

@ -437,6 +437,10 @@ void PathWalker_BR::setFollowerPath(AnimationPtr a, uint16 x, uint16 y) {
}
void PathWalker_BR::stopFollower() {
if (_follower._active) {
uint32 frame = _follower._a->getF();
_follower._a->setF((frame/9) * 9);
}
_follower._a.reset();
_follower._active = false;
}