aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/room.cpp
diff options
context:
space:
mode:
authorLars Persson2006-03-09 13:54:36 +0000
committerLars Persson2006-03-09 13:54:36 +0000
commit04151343a78f28c4d58a1a48c1e352888ee4f71c (patch)
treeb7daf56b9618d75629ceeac0acf0d80c0632a47e /engines/lure/room.cpp
parent1d14d18893134ece3819a4c8ff92c10073c2d076 (diff)
downloadscummvm-rg350-04151343a78f28c4d58a1a48c1e352888ee4f71c.tar.gz
scummvm-rg350-04151343a78f28c4d58a1a48c1e352888ee4f71c.tar.bz2
scummvm-rg350-04151343a78f28c4d58a1a48c1e352888ee4f71c.zip
Compile fixes for VC6
svn-id: r21179
Diffstat (limited to 'engines/lure/room.cpp')
-rw-r--r--engines/lure/room.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/lure/room.cpp b/engines/lure/room.cpp
index f6f5ec233b..e27f9cfbdb 100644
--- a/engines/lure/room.cpp
+++ b/engines/lure/room.cpp
@@ -36,14 +36,15 @@ RoomLayer::RoomLayer(uint16 screenId, bool backgroundLayer):
Surface(FULL_SCREEN_WIDTH, FULL_SCREEN_HEIGHT) {
loadScreen(screenId);
byte *screenData = data().data();
+ int cellY;
// Reset all the cells to false
- for (int cellY = 0; cellY < FULL_VERT_RECTS; ++cellY)
+ for (cellY = 0; cellY < FULL_VERT_RECTS; ++cellY)
for (int cellX = 0; cellX < FULL_HORIZ_RECTS; ++cellX)
_cells[cellY][cellX] = false;
// Loop through each cell of the screen
- for (int cellY = 0; cellY < NUM_VERT_RECTS; ++cellY) {
+ for (cellY = 0; cellY < NUM_VERT_RECTS; ++cellY) {
for (int cellX = 0; cellX < NUM_HORIZ_RECTS; ++cellX) {
bool hasPixels = false;