aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_still.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects/actions/action_still.cpp')
-rw-r--r--engines/pink/objects/actions/action_still.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/pink/objects/actions/action_still.cpp b/engines/pink/objects/actions/action_still.cpp
index 9c1ba083c9..d0b27586d4 100644
--- a/engines/pink/objects/actions/action_still.cpp
+++ b/engines/pink/objects/actions/action_still.cpp
@@ -65,4 +65,9 @@ void ActionStill::setFrame(uint frame) {
decodeNext();
}
+void ActionStill::nextFrameLooped() {
+ assert(_decoder.getCurFrame() != -1);
+ setFrame((_decoder.getCurFrame() + 1) % _decoder.getFrameCount());
+}
+
} // End of namespace Pink