diff options
Diffstat (limited to 'engines/pink/objects/actions')
-rw-r--r-- | engines/pink/objects/actions/action_play.cpp | 2 | ||||
-rw-r--r-- | engines/pink/objects/actions/action_play_with_sfx.cpp | 6 | ||||
-rw-r--r-- | engines/pink/objects/actions/action_still.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/engines/pink/objects/actions/action_play.cpp b/engines/pink/objects/actions/action_play.cpp index 8c0be27b39..34f11009b5 100644 --- a/engines/pink/objects/actions/action_play.cpp +++ b/engines/pink/objects/actions/action_play.cpp @@ -47,7 +47,7 @@ void ActionPlay::end() { void ActionPlay::onStart() { debug("Actor %s has now ActionPlay %s", _actor->getName().c_str(), _name.c_str()); _decoder->start(); - for (int i = 0; i < _startFrame; ++i) { + for (uint i = 0; i < _startFrame; ++i) { _decoder->skipFrame(); } _decoder->decodeNextFrame(); diff --git a/engines/pink/objects/actions/action_play_with_sfx.cpp b/engines/pink/objects/actions/action_play_with_sfx.cpp index b43b498eeb..44033705ff 100644 --- a/engines/pink/objects/actions/action_play_with_sfx.cpp +++ b/engines/pink/objects/actions/action_play_with_sfx.cpp @@ -36,7 +36,7 @@ void ActionPlayWithSfx::deserialize(Pink::Archive &archive) { void ActionPlayWithSfx::toConsole() { debug("\tActionPlayWithSfx: _name = %s, _fileName = %s, z = %u, _startFrame = %u," " _endFrame = %u, _isLoop = %u", _name.c_str(), _fileName.c_str(), _z, _startFrame, _stopFrame, _isLoop); - for (int i = 0; i < _sfxArray.size(); ++i) { + for (uint i = 0; i < _sfxArray.size(); ++i) { _sfxArray[i]->toConsole(); } } @@ -64,7 +64,7 @@ void ActionPlayWithSfx::updateSound() { if (!_actor->isPlaying() && !_isLoop) return; - for (int i = 0; i < _sfxArray.size(); ++i) { + for (uint i = 0; i < _sfxArray.size(); ++i) { if (_sfxArray[i]->getFrame() == _decoder->getCurFrame()) { _sfxArray[i]->play(_actor->getPage()); } @@ -73,7 +73,7 @@ void ActionPlayWithSfx::updateSound() { ActionPlayWithSfx::~ActionPlayWithSfx() { ActionPlay::end(); - for (int i = 0; i < _sfxArray.size(); ++i) { + for (uint i = 0; i < _sfxArray.size(); ++i) { delete _sfxArray[i]; } } diff --git a/engines/pink/objects/actions/action_still.cpp b/engines/pink/objects/actions/action_still.cpp index acc0a2e30d..0bcfcebf3b 100644 --- a/engines/pink/objects/actions/action_still.cpp +++ b/engines/pink/objects/actions/action_still.cpp @@ -46,7 +46,7 @@ void ActionStill::end() { void ActionStill::onStart() { debug("Actor %s has now ActionStill %s", _actor->getName().c_str(), _name.c_str()); - for (int i = 0; i < _startFrame; ++i) { + for (uint i = 0; i < _startFrame; ++i) { _decoder->skipFrame(); } _decoder->decodeNextFrame(); |