diff options
author | Strangerke | 2016-03-14 00:05:55 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 09:54:21 +0200 |
commit | c18c5b047d33f261c003d6196891bae7d6669fd6 (patch) | |
tree | d9ab6e96c1d78ab9e0fcc3fb07e6d87f74185030 | |
parent | 2a23b8d90c8b2c3a56a457a7791775b652876d17 (diff) | |
download | scummvm-rg350-c18c5b047d33f261c003d6196891bae7d6669fd6.tar.gz scummvm-rg350-c18c5b047d33f261c003d6196891bae7d6669fd6.tar.bz2 scummvm-rg350-c18c5b047d33f261c003d6196891bae7d6669fd6.zip |
GNAP: Reduce variable scope in fatUpdateFrame, change variable type to boolean
-rw-r--r-- | engines/gnap/gamesys.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/gnap/gamesys.cpp b/engines/gnap/gamesys.cpp index d6f8db8c7a..6e0260a2ce 100644 --- a/engines/gnap/gamesys.cpp +++ b/engines/gnap/gamesys.cpp @@ -1022,7 +1022,7 @@ void GameSys::fatUpdateFrame() { return; bool updFlag = true; - int duration, v20, currFrameNum; + int duration, currFrameNum; // NOTE Skipped avi code (reqAviStart) @@ -1071,13 +1071,13 @@ void GameSys::fatUpdateFrame() { duration = clockDelta - gfxItem->delayTicks; gfxItem->delayTicks = 0; if (gfxItem->prevFrame.duration <= duration) { - v20 = 0; + bool v20 = false; if (gfxItem->prevFrame.duration > 0) { duration -= gfxItem->prevFrame.duration; gfxItem->prevFrame.duration = -duration; } else { gfxItem->prevFrame.duration = 0; - v20 = 1; + v20 = true; } currFrameNum = gfxItem->currFrameNum; if (animation->framesCount > currFrameNum) { |