diff options
author | lukaslw | 2014-07-27 17:47:18 +0200 |
---|---|---|
committer | lukaslw | 2014-07-27 17:47:18 +0200 |
commit | 951239bfd8c25c1bab04f4bec527ed534572058c (patch) | |
tree | afa2a7a5b25f697d0fec75b521b00f1c3d1ed89e /engines | |
parent | 87756b4ebd83104a02b3a9c10ad7becb8db80c98 (diff) | |
download | scummvm-rg350-951239bfd8c25c1bab04f4bec527ed534572058c.tar.gz scummvm-rg350-951239bfd8c25c1bab04f4bec527ed534572058c.tar.bz2 scummvm-rg350-951239bfd8c25c1bab04f4bec527ed534572058c.zip |
PRINCE: O_CHECKANIMFRAME, O_CHECKBACKANIMFRAME fix
Diffstat (limited to 'engines')
-rw-r--r-- | engines/prince/script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp index 7344bc361e..e2c323b415 100644 --- a/engines/prince/script.cpp +++ b/engines/prince/script.cpp @@ -640,7 +640,7 @@ void Interpreter::O_FREEANIM() { void Interpreter::O_CHECKANIMFRAME() { uint16 slot = readScriptFlagValue(); uint16 frameNumber = readScriptFlagValue(); - if (_vm->_normAnimList[slot]._frame != frameNumber) { + if (_vm->_normAnimList[slot]._frame != frameNumber - 1) { _currentInstruction -= 6; _opcodeNF = 1; } @@ -680,7 +680,7 @@ void Interpreter::O_CHECKBACKANIMFRAME() { uint16 slotId = readScriptFlagValue(); uint16 frameId = readScriptFlagValue(); int currAnim = _vm->_backAnimList[slotId]._seq._currRelative; - if (_vm->_backAnimList[slotId].backAnims[currAnim]._frame != frameId) { + if (_vm->_backAnimList[slotId].backAnims[currAnim]._frame != frameId - 1) { _currentInstruction -= 6; _opcodeNF = 1; } |