# HG changeset patch # User Wuzzy # Date 1560554320 -7200 # Node ID 53342ce3f0a605da43879a6661b64db0906bb989 # Parent adf6f9be81137bfee172e4ca223a99d7d01e78b5 Fix freezer drawing land outside of indestructible land border in some map types diff -r adf6f9be8113 -r 53342ce3f0a6 hedgewars/uLandGraphics.pas --- a/hedgewars/uLandGraphics.pas Fri Jun 14 22:24:59 2019 +0200 +++ b/hedgewars/uLandGraphics.pas Sat Jun 15 01:18:40 2019 +0200 @@ -161,6 +161,7 @@ procedure DrawPixelIce(landX, landY, pixelX, pixelY: Longint); inline; begin if ((Land[landY, landX] and lfIce) <> 0) then exit; +if (pixelX < LeftX) or (pixelX > RightX) or (pixelY < TopY) then exit; if isLandscapeEdge(getPixelWeight(landX, landY)) then begin if (LandPixels[pixelY, pixelX] and AMask < 255) and (LandPixels[pixelY, pixelX] and AMask > 0) then