# HG changeset patch # User unc0rr # Date 1233327422 0 # Node ID 1d9395d1e1045befe139e644fea57230fd3088bf # Parent 88674c29133179a548b6a3cd83a697a2018325ae Fix border drawing when drilling diff -r 88674c291331 -r 1d9395d1e104 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;