hedgewars/uLandGraphics.pas
changeset 1892 fddc1201df25
parent 1861 98de5dc5fda7
child 2167 4e9ad395c1d1
--- a/hedgewars/uLandGraphics.pas	Sun Mar 15 12:58:23 2009 +0000
+++ b/hedgewars/uLandGraphics.pas	Sun Mar 15 12:59:52 2009 +0000
@@ -423,7 +423,7 @@
 				ny:= Y + i;
 				nx:= X + j;
 				if ((ny and LAND_HEIGHT_MASK) = 0) and ((nx and LAND_WIDTH_MASK) = 0) then
-					if Land[ny, nx] <> 0 then
+					if Land[ny, nx] > 255 then
 						inc(c);
 				end;