# HG changeset patch # User unc0rr # Date 1309353941 -14400 # Node ID 1868c2dc0284a29649b5ec31a40c5d69468b8c0c # Parent 6963e37f2dd2fa3f5de44d776691f5a241678f66 Check xx for LAND_WIDTH_MASK diff -r 6963e37f2dd2 -r 1868c2dc0284 hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Tue Jun 28 17:12:09 2011 +0400 +++ b/hedgewars/GSHandlers.inc Wed Jun 29 17:25:41 2011 +0400 @@ -627,7 +627,7 @@ if yy > cWaterLine then move:= true else if ((yy and LAND_HEIGHT_MASK) <> 0) or (xx > LAND_WIDTH + 512) or (xx < -512) then move:=true // Solid pixel encountered - else if (Land[yy, xx] <> 0) then + else if ((xx and LAND_WIDTH_MASK) = 0) and (Land[yy, xx] <> 0) then begin // If there's room below keep falling if (((yy-1) and LAND_HEIGHT_MASK) = 0) and (Land[yy-1, xx] = 0) then