diff options
author | Martin Kiewitz | 2016-01-31 01:04:53 +0100 |
---|---|---|
committer | Martin Kiewitz | 2016-01-31 01:04:53 +0100 |
commit | 428df3e6cb1e3d37c6b596ecd7049c1430905667 (patch) | |
tree | 11aec8931289faef5ac718cd61b59435d6abdaa7 /engines/agi/op_cmd.cpp | |
parent | 26cb39beeefa03c7d0343b60b058334752527a08 (diff) | |
download | scummvm-rg350-428df3e6cb1e3d37c6b596ecd7049c1430905667.tar.gz scummvm-rg350-428df3e6cb1e3d37c6b596ecd7049c1430905667.tar.bz2 scummvm-rg350-428df3e6cb1e3d37c6b596ecd7049c1430905667.zip |
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
Diffstat (limited to 'engines/agi/op_cmd.cpp')
-rw-r--r-- | engines/agi/op_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |