diff options
-rw-r--r-- | engines/pink/objects/actions/action_loop.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/pink/objects/actions/action_loop.cpp b/engines/pink/objects/actions/action_loop.cpp index 18e9bf4c5c..500a001b4c 100644 --- a/engines/pink/objects/actions/action_loop.cpp +++ b/engines/pink/objects/actions/action_loop.cpp @@ -54,10 +54,10 @@ void ActionLoop::toConsole() { } void ActionLoop::update() { - uint frame = _decoder.getCurFrame(); + int frame = _decoder.getCurFrame(); if (!_inLoop) { - if (frame < _startFrame) { + if (frame < (int)_startFrame) { decodeNext(); return; } else @@ -67,7 +67,7 @@ void ActionLoop::update() { switch (_style) { case kPingPong: if (_forward) { - if (frame < (uint)_stopFrame) { + if (frame < _stopFrame) { decodeNext(); } else { _forward = false; @@ -75,7 +75,7 @@ void ActionLoop::update() { decodeNext(); } } else { - if (frame > _startFrame) { + if (frame > (int)_startFrame) { setFrame(frame - 1); } else { _forward = true; @@ -90,7 +90,7 @@ void ActionLoop::update() { break; } case kForward: - if (frame == (uint)_stopFrame) { + if (frame == _stopFrame) { setFrame(_startFrame); } decodeNext(); |