# HG changeset patch # User unc0rr # Date 1206825234 0 # Node ID ee4fa9ff2a7b86c3b7a351527dc64fae7cda3c70 # Parent b119e4f470b8efbc09513141521178df7e894926 Aware that not visible pixels are not ground, whatever their color under alpha-channel is diff -r b119e4f470b8 -r ee4fa9ff2a7b hedgewars/uLand.pas --- a/hedgewars/uLand.pas Tue Mar 25 22:39:26 2008 +0000 +++ b/hedgewars/uLand.pas Sat Mar 29 21:13:54 2008 +0000 @@ -586,7 +586,7 @@ 4: for y:= 0 to 1023 do begin for x:= 0 to 2047 do - if PLongword(@(p^[x * 4]))^ <> 0 then Land[y, x]:= COLOR_LAND; + if (PLongword(@(p^[x * 4]))^ and $FF000000) <> 0 then Land[y, x]:= COLOR_LAND; p:= @(p^[LandSurface^.pitch]); end; end;