diff options
author | Andrei Prykhodko | 2018-06-30 20:04:11 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-06-30 20:04:11 +0300 |
commit | 4f13195e8c4f5301ec07b62de33ab23d2e7243d5 (patch) | |
tree | a7953287c685870eb9fb2ea6ed0325ef78eaa0a3 /engines/pink/objects/actions/action_still.cpp | |
parent | 5294c8d25236472ac941d29e4f41310ebdaae0f5 (diff) | |
download | scummvm-rg350-4f13195e8c4f5301ec07b62de33ab23d2e7243d5.tar.gz scummvm-rg350-4f13195e8c4f5301ec07b62de33ab23d2e7243d5.tar.bz2 scummvm-rg350-4f13195e8c4f5301ec07b62de33ab23d2e7243d5.zip |
PINK: added PDA rightHand movement
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 |