hedgewars/uLandGraphics.pas
changeset 2648 415a75d45693
parent 2647 0e1208e92dfe
child 2666 2b8c8f16421e
--- a/hedgewars/uLandGraphics.pas	Sun Nov 29 16:56:04 2009 +0000
+++ b/hedgewars/uLandGraphics.pas	Sun Nov 29 18:30:21 2009 +0000
@@ -499,7 +499,7 @@
 
 	if c < 4 then // 0-3 neighbours
 		begin
-        LandPixels[Y, X]:= ToggleLongInt(Land[Y, X] = COLOR_LAND, LandBackPixel(X, Y), 0);
+        if Land[Y, X] = COLOR_LAND then LandPixels[Y, X]:= LandBackPixel(X, Y) else LandPixels[Y, X]:= 0;
 		Land[Y, X]:= 0;
 		exit(true);
 		end;