hedgewars/tunsetborder.inc
changeset 1778 1d9395d1e104
parent 1066 1f1b3686a2b0
child 1792 c30c6944bd49
--- a/hedgewars/tunsetborder.inc	Fri Jan 30 14:56:27 2009 +0000
+++ b/hedgewars/tunsetborder.inc	Fri Jan 30 14:57:02 2009 +0000
@@ -21,7 +21,7 @@
         Y:= Y + dY;
         tx:= hwRound(X);
         ty:= hwRound(Y);
-        if ((ty and $FFFFFC00) = 0) and
-           ((tx and $FFFFF800) = 0) and
+        if ((ty and LAND_HEIGHT_MASK) = 0) and
+           ((tx and LAND_WIDTH_MASK) = 0) and
            (Land[ty, tx] = $FFFFFF) then LandPixels[ty, tx]:= cExplosionBorderColor
 	end;