diff options
Diffstat (limited to 'engines/pink/objects/actions/action_still.cpp')
-rw-r--r-- | engines/pink/objects/actions/action_still.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/pink/objects/actions/action_still.cpp b/engines/pink/objects/actions/action_still.cpp index 5bd645b3cc..9c1ba083c9 100644 --- a/engines/pink/objects/actions/action_still.cpp +++ b/engines/pink/objects/actions/action_still.cpp @@ -52,8 +52,7 @@ void ActionStill::onStart() { if (_startFrame >= _decoder.getFrameCount()) _startFrame = 0; - setFrame(_startFrame); // seek to frame before startFrame - decodeNext(); // decode startFrame + setFrame(_startFrame); _decoder.setEndOfTrack(); assert(!_decoder.needsUpdate()); @@ -61,4 +60,9 @@ void ActionStill::onStart() { _actor->endAction(); } +void ActionStill::setFrame(uint frame) { + ActionCEL::setFrame(frame); + decodeNext(); +} + } // End of namespace Pink |