Skip to content

Commit

Permalink
PRINCE: O_CHECKANIMFRAME, O_CHECKBACKANIMFRAME fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslw committed Jul 27, 2014
1 parent 87756b4 commit 951239b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/prince/script.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 951239b

Please sign in to comment.