diff options
author | Torbjörn Andersson | 2007-04-14 05:02:12 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-04-14 05:02:12 +0000 |
commit | 099ffb9cf0d735a9a5fcf91e524e4c818da9efb0 (patch) | |
tree | 9041bca1a8266790e1f13588a0b10ed533327b73 /engines/lure | |
parent | 68225f78967b4328a7c52e3a25bd53320dea4ece (diff) | |
download | scummvm-rg350-099ffb9cf0d735a9a5fcf91e524e4c818da9efb0.tar.gz scummvm-rg350-099ffb9cf0d735a9a5fcf91e524e4c818da9efb0.tar.bz2 scummvm-rg350-099ffb9cf0d735a9a5fcf91e524e4c818da9efb0.zip |
Fixed warning.
svn-id: r26466
Diffstat (limited to 'engines/lure')
-rw-r--r-- | engines/lure/hotspots.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index 9fa72cbbee..7c027c924a 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -925,12 +925,12 @@ bool Hotspot::findClearBarPlace() { // Scan backwards from the right side for 4 free blocks along the bar line block int numFree = 0; - for (int x = ROOM_PATHS_WIDTH - 1; x >= 0; --x) { - if (paths.isOccupied(x, barEntry.gridLine)) + for (int xp = ROOM_PATHS_WIDTH - 1; xp >= 0; --xp) { + if (paths.isOccupied(xp, barEntry.gridLine)) numFree = 0; else if (++numFree == 4) { // Start character walking to the found position - walkTo(x * 8, (barEntry.gridLine << 3) + 8); + walkTo(xp * 8, (barEntry.gridLine << 3) + 8); return false; } } |