diff options
author | whiterandrek | 2018-05-21 14:27:29 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | a45e58319d7aa6da38f4ecee3ca07889a75d3a82 (patch) | |
tree | c6fee74bb9430e44c822e12ec52bc1d1866802a3 /engines/pink/objects/actions | |
parent | 656ca285ac7ac6f365fdde45accb020b80ec7898 (diff) | |
download | scummvm-rg350-a45e58319d7aa6da38f4ecee3ca07889a75d3a82.tar.gz scummvm-rg350-a45e58319d7aa6da38f4ecee3ca07889a75d3a82.tar.bz2 scummvm-rg350-a45e58319d7aa6da38f4ecee3ca07889a75d3a82.zip |
PINK: fix signed vs unsigned comparison
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(); |