aboutsummaryrefslogtreecommitdiff
path: root/engines/igor/parts
diff options
context:
space:
mode:
authorFilippos Karapetis2008-09-10 06:57:32 +0000
committerFilippos Karapetis2008-09-10 06:57:32 +0000
commitfbc75cc8e5ed3153ac08a7c8f2106aec3d4a460f (patch)
treee53dc6fe6754b15eb019f5de1243663220261694 /engines/igor/parts
parent6fad6711d96a256c0c75343981f3e2c04ff68986 (diff)
downloadscummvm-rg350-fbc75cc8e5ed3153ac08a7c8f2106aec3d4a460f.tar.gz
scummvm-rg350-fbc75cc8e5ed3153ac08a7c8f2106aec3d4a460f.tar.bz2
scummvm-rg350-fbc75cc8e5ed3153ac08a7c8f2106aec3d4a460f.zip
Fix in the Igor engine for bug #2101083 - "ANY - MSVC71 compilation fails due to warnings-as-errors"
svn-id: r34468
Diffstat (limited to 'engines/igor/parts')
-rw-r--r--engines/igor/parts/part_22.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/igor/parts/part_22.cpp b/engines/igor/parts/part_22.cpp
index 9727ae3e1a..7a7c26d477 100644
--- a/engines/igor/parts/part_22.cpp
+++ b/engines/igor/parts/part_22.cpp
@@ -74,7 +74,9 @@ void IgorEngine::PART_22_ACTION_101() {
void IgorEngine::PART_22_ACTION_102() {
_walkDataCurrentIndex = 0;
_walkCurrentFrame = 1;
- for (int i = 9; i >= 0; --i) {
+ int i = 0;
+
+ for (i = 9; i >= 0; --i) {
WalkData *wd = &_walkData[0];
wd->setPos(138, 123, 1, _walkCurrentFrame);
WalkData::setNextFrame(1, _walkCurrentFrame);
@@ -89,7 +91,7 @@ void IgorEngine::PART_22_ACTION_102() {
moveIgor(wd->posNum, wd->frameNum);
waitForTimer(15);
}
- int i = 16;
+ i = 16;
do {
if (compareGameTick(1, 16)) {
memcpy(_screenTextLayer + (i * 8 + 16) * 320, _screenLayer1 + (128 - i * 8) * 320, (i * 8 + 16) * 320);