hedgewars/uLand.pas
changeset 10490 b30b8d39d662
parent 10421 87e47843018e
child 10603 bda5c7caf396
--- a/hedgewars/uLand.pas	Tue Nov 11 21:55:38 2014 +0100
+++ b/hedgewars/uLand.pas	Tue Nov 11 23:57:46 2014 +0300
@@ -659,8 +659,6 @@
                 begin
                 w:= LandPixels[y div 2,x div 2];
                 w:= ((w shr RShift and $FF) +  (w shr BShift and $FF) + (w shr GShift and $FF)) div 3;
-                if w > 255 then
-                    w:= 255;
                 w:= (w and $FF shl RShift) or (w and $FF shl BShift) or (w and $FF shl GShift) or (LandPixels[y div 2,x div 2] and AMask);
                 LandPixels[y,x]:= w or (LandPixels[y div 2, x div 2] and AMask)
                 end