aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_still.cpp
diff options
context:
space:
mode:
authorwhitertandrek2018-03-27 13:53:03 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commitc37bd09354cb233404bec5aed6ded79412650cef (patch)
tree015edd054870708458b653a473809b4f835d15d4 /engines/pink/objects/actions/action_still.cpp
parent17c2bcfb948a24f9a1d99eeac85f799d45549d9f (diff)
downloadscummvm-rg350-c37bd09354cb233404bec5aed6ded79412650cef.tar.gz
scummvm-rg350-c37bd09354cb233404bec5aed6ded79412650cef.tar.bz2
scummvm-rg350-c37bd09354cb233404bec5aed6ded79412650cef.zip
PINK: implemented drawing of transparent drawing, but it seems that original handles this a bit different.(intro of Peril first sprite keeps transparent colour index somewhere else)
Diffstat (limited to 'engines/pink/objects/actions/action_still.cpp')
-rw-r--r--engines/pink/objects/actions/action_still.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/pink/objects/actions/action_still.cpp b/engines/pink/objects/actions/action_still.cpp
index c49e52ae1d..442fe85330 100644
--- a/engines/pink/objects/actions/action_still.cpp
+++ b/engines/pink/objects/actions/action_still.cpp
@@ -45,7 +45,9 @@ void ActionStill::end() {
void ActionStill::onStart() {
debug("Actor %s has now ActionStill %s", _actor->getName().c_str(), _name.c_str());
- _decoder->seekToFrame(_startFrame);
+ for (int i = 0; i < _startFrame; ++i) {
+ _decoder->decodeNextFrame();
+ }
}
} // End of namespace Pink \ No newline at end of file