mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
Implemented MOVE script instruction.
svn-id: r39623
This commit is contained in:
parent
71f42a9549
commit
5c714cb46e
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user