Skip to content

Commit

Permalink
PRINCE: O_CHANGEFRAMES(), showNormAnims() update
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslw committed Jul 2, 2014
1 parent ad8df75 commit 8378d92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/prince/prince.cpp
Expand Up @@ -1256,7 +1256,7 @@ void PrinceEngine::showNormAnims() {
Anim &anim = _normAnimList[i];
if (anim._animData != nullptr) {
if (!anim._state) {
if (anim._frame == anim._lastFrame) {
if (anim._frame == anim._lastFrame - 1) { // TODO - check if correct
if (anim._loopType) {
if (anim._loopType == 1) {
anim._frame = anim._loopFrame;
Expand Down
5 changes: 4 additions & 1 deletion engines/prince/script.cpp
Expand Up @@ -1160,7 +1160,10 @@ void Interpreter::O_CHANGEFRAMES() {
uint16 frame = readScriptFlagValue();
uint16 lastFrame = readScriptFlagValue();
uint16 loopFrame = readScriptFlagValue();
debugInterpreter("O_CHANGFRAMES anim %d, fr1 %d, fr2 %d, fr3 %d", anim, frame, lastFrame, loopFrame);
_vm->_normAnimList[anim]._frame = frame;
_vm->_normAnimList[anim]._lastFrame = lastFrame;
_vm->_normAnimList[anim]._loopFrame = loopFrame;
debugInterpreter("O_CHANGFRAMES anim %d, frame %d, lastFrame %d, loopFrame %d", anim, frame, lastFrame, loopFrame);
}

void Interpreter::O_CHANGEBACKFRAMES() {
Expand Down

0 comments on commit 8378d92

Please sign in to comment.