From 099ffb9cf0d735a9a5fcf91e524e4c818da9efb0 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 14 Apr 2007 05:02:12 +0000 Subject: Fixed warning. svn-id: r26466 --- engines/lure/hotspots.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/lure') 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; } } -- cgit v1.2.3