hedgewars/uLandGraphics.pas
changeset 3521 96a502730e81
parent 3519 56cbc035b74b
child 3554 066faceb977d
--- a/hedgewars/uLandGraphics.pas	Fri Jun 18 20:45:45 2010 +0200
+++ b/hedgewars/uLandGraphics.pas	Sun Jun 20 18:26:49 2010 -0400
@@ -644,7 +644,7 @@
 function Despeckle(X, Y: LongInt): boolean;
 var nx, ny, i, j, c: LongInt;
 begin
-if (Land[Y, X] > 255) and ((Land[Y, X] and lfIndestructible) = 0) and ((Land[Y, X] and lfDamaged) <> 0)then // check neighbours
+if ((Land[Y, X] and lfDamaged) <> 0) and ((Land[Y, X] and lfIndestructible) = 0) then // check neighbours
     begin
     c:= 0;
     for i:= -1 to 1 do