Skip to content

Commit

Permalink
ACCESS: Fix the implementation of cmdCheckAnim
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Aug 11, 2014
1 parent 5344143 commit 69c7f98
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions engines/access/scripts.cpp
Expand Up @@ -238,11 +238,10 @@ void Scripts::cmdCheckAnim() {
int id = _data->readUint16LE();
Animation *anim = _vm->_animation->findAnimation(id);

if (anim->_currentLoopCount == -1) {
_data->skip(2);
if (anim->_currentLoopCount == -1)
cmdGoto();
} else
_data->skip(4);
else
_data->skip(2);
}

void Scripts::CMDSND() { error("TODO"); }
Expand Down

0 comments on commit 69c7f98

Please sign in to comment.