From 91fb83a72ffb9f28b21ebc4c7e4a1c8bffb97761 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 4 May 2007 09:16:55 +0000 Subject: Bugfix to prevent characters stopped by a right-hand non-walkable area then being able to walk through it svn-id: r26744 --- engines/lure/hotspots.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index 40d59a5577..1bbcfe5dcb 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -566,7 +566,7 @@ void Hotspot::setOccupied(bool occupiedFlag) { int xp = x() >> 3; int yp = (y() - 8 + heightCopy() - 4) >> 3; - int widthVal = MAX((widthCopy() >> 3), 1); + int widthVal = MAX(((widthCopy() - 1) >> 3), 1); // Handle cropping for screen left if (xp < 0) { -- cgit v1.2.3