Fix border drawing when drilling
authorunc0rr
Fri, 30 Jan 2009 14:57:02 +0000
changeset 1778 1d9395d1e104
parent 1777 88674c291331
child 1779 9d88af62a3bb
Fix border drawing when drilling
hedgewars/tunsetborder.inc
--- 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;