diff options
Diffstat (limited to 'engines/pink/objects/actions/action_play.cpp')
-rw-r--r-- | engines/pink/objects/actions/action_play.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/engines/pink/objects/actions/action_play.cpp b/engines/pink/objects/actions/action_play.cpp index 6ab21db32e..6ae56df349 100644 --- a/engines/pink/objects/actions/action_play.cpp +++ b/engines/pink/objects/actions/action_play.cpp @@ -30,34 +30,34 @@ namespace Pink { void ActionPlay::deserialize(Archive &archive) { - ActionStill::deserialize(archive); - _stopFrame = archive.readDWORD(); + ActionStill::deserialize(archive); + _stopFrame = archive.readDWORD(); } void ActionPlay::toConsole() { - debug("\tActionPlay: _name = %s, _fileName = %s, z = %u, _startFrame = %u," - " _endFrame = %d", _name.c_str(), _fileName.c_str(), _z, _startFrame, _stopFrame); + debug("\tActionPlay: _name = %s, _fileName = %s, z = %u, _startFrame = %u," + " _endFrame = %d", _name.c_str(), _fileName.c_str(), _z, _startFrame, _stopFrame); } void ActionPlay::end() { - ActionCEL::end(); - debug("ActionPlay %s of Actor %s is ended", _name.c_str(), _actor->getName().c_str()); + ActionCEL::end(); + debug("ActionPlay %s of Actor %s is ended", _name.c_str(), _actor->getName().c_str()); } void ActionPlay::onStart() { - debug("Actor %s has now ActionPlay %s", _actor->getName().c_str(), _name.c_str()); - _decoder->start(); - for (uint i = 0; i < _startFrame; ++i) { - _decoder->skipFrame(); - } - _decoder->decodeNextFrame(); + debug("Actor %s has now ActionPlay %s", _actor->getName().c_str(), _name.c_str()); + _decoder->start(); + for (uint i = 0; i < _startFrame; ++i) { + _decoder->skipFrame(); + } + _decoder->decodeNextFrame(); } void ActionPlay::update() { - if (_decoder->endOfVideo() || _decoder->getCurFrame() == _stopFrame){ - _decoder->stop(); - _actor->endAction(); - } + if (_decoder->endOfVideo() || _decoder->getCurFrame() == _stopFrame){ + _decoder->stop(); + _actor->endAction(); + } } } // End of namespace Pink |