hedgewars/uLandGraphics.pas
changeset 2741 7a84ce33f52f
parent 2733 52a5a160566f
child 2948 3f21a9dc93d0
--- a/hedgewars/uLandGraphics.pas	Wed Feb 03 03:01:44 2010 +0000
+++ b/hedgewars/uLandGraphics.pas	Wed Feb 03 04:18:28 2010 +0000
@@ -394,7 +394,7 @@
         Y:= Y + dY;
         tx:= hwRound(X);
         ty:= hwRound(Y);
-        if (Land[ty, tx] <> COLOR_INDESTRUCTIBLE) and ((ty and LAND_HEIGHT_MASK) = 0) and ((tx and LAND_WIDTH_MASK) = 0) then
+        if ((ty and LAND_HEIGHT_MASK) = 0) and ((tx and LAND_WIDTH_MASK) = 0) and (Land[ty, tx] <> COLOR_INDESTRUCTIBLE) then
             begin
             if Land[ty, tx] = COLOR_LAND then
                 LandPixels[ty, tx]:= LandBackPixel(tx, ty)