From 428df3e6cb1e3d37c6b596ecd7049c1430905667 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 31 Jan 2016 01:04:53 +0100 Subject: AGI: copying between var + ego screen obj fixed We copied the wrong way see cycle.cpp This fixes the fan game 13th disciple. bug #3563 Also cleanup playercontrol variable is now a boolean --- engines/agi/op_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/agi/op_cmd.cpp') diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index 00b8dbf8ba..fbabfd3328 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -1477,7 +1477,7 @@ void cmdStopMotion(AgiGame *state, uint8 *parameter) { screenObj->direction = 0; screenObj->motionType = kMotionNormal; if (objectNr == 0) { // ego only - state->vars[VM_VAR_EGO_DIRECTION] = 0; + state->_vm->setVar(VM_VAR_EGO_DIRECTION, 0); state->playerControl = false; } } @@ -1495,7 +1495,7 @@ void cmdStartMotion(AgiGame *state, uint8 *parameter) { screenObj->motionType = kMotionNormal; if (objectNr == 0) { // ego only - state->vars[VM_VAR_EGO_DIRECTION] = 0; + state->_vm->setVar(VM_VAR_EGO_DIRECTION, 0); state->playerControl = true; } } -- cgit v1.2.3