aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_loop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects/actions/action_loop.cpp')
-rw-r--r--engines/pink/objects/actions/action_loop.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/engines/pink/objects/actions/action_loop.cpp b/engines/pink/objects/actions/action_loop.cpp
index 77a17630e2..f32a3a4035 100644
--- a/engines/pink/objects/actions/action_loop.cpp
+++ b/engines/pink/objects/actions/action_loop.cpp
@@ -28,42 +28,42 @@
namespace Pink {
void ActionLoop::deserialize(Archive &archive) {
- ActionPlay::deserialize(archive);
- uint16 style;
- _intro = archive.readDWORD();
- style = archive.readWORD();
- switch (style) {
- case kPingPong:
- _style = kPingPong;
- break;
- case kRandom:
- _style = kRandom;
- break;
- default:
- _style = kForward;
- break;
- }
+ ActionPlay::deserialize(archive);
+ uint16 style;
+ _intro = archive.readDWORD();
+ style = archive.readWORD();
+ switch (style) {
+ case kPingPong:
+ _style = kPingPong;
+ break;
+ case kRandom:
+ _style = kRandom;
+ break;
+ default:
+ _style = kForward;
+ break;
+ }
}
void ActionLoop::toConsole() {
- debug("\tActionLoop: _name = %s, _fileName = %s, z = %u, _startFrame = %u,"
- " _endFrame = %d, _intro = %u, _style = %u",
- _name.c_str(), _fileName.c_str(), _z, _startFrame, _stopFrame, _intro, _style);
+ debug("\tActionLoop: _name = %s, _fileName = %s, z = %u, _startFrame = %u,"
+ " _endFrame = %d, _intro = %u, _style = %u",
+ _name.c_str(), _fileName.c_str(), _z, _startFrame, _stopFrame, _intro, _style);
}
void ActionLoop::update() {
- // for now it supports only forward loop animation
- if (_style == kForward) {
- if (_decoder->endOfVideo() || _decoder->getCurFrame() == _stopFrame){
- //debug("ACTION LOOP : NEXT ITERATION");
- _decoder->rewind();
- }
- }
+ // for now it supports only forward loop animation
+ if (_style == kForward) {
+ if (_decoder->endOfVideo() || _decoder->getCurFrame() == _stopFrame){
+ //debug("ACTION LOOP : NEXT ITERATION");
+ _decoder->rewind();
+ }
+ }
}
void ActionLoop::onStart() {
- ActionPlay::onStart();
- _actor->endAction();
+ ActionPlay::onStart();
+ _actor->endAction();
}
} // End of namespace Pink