Bugfix to prevent characters stopped by a right-hand non-walkable area then being able to walk through it

svn-id: r26744
This commit is contained in:
Paul Gilbert 2007-05-04 09:16:55 +00:00
parent 3fccd9c06f
commit 91fb83a72f

View File

@ -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) {