# HG changeset patch # User Urbertar@gmail.com # Date 1361887475 -7200 # Node ID da608f69d853319c6181d0c7917e5c6f9bd4108d # Parent f2edd6d5f958f95977e485cdf5469378a8ebcde4 Check is lanscape already ice diff -r f2edd6d5f958 -r da608f69d853 hedgewars/uLandGraphics.pas --- a/hedgewars/uLandGraphics.pas Tue Feb 26 15:15:20 2013 +0200 +++ b/hedgewars/uLandGraphics.pas Tue Feb 26 16:04:35 2013 +0200 @@ -290,6 +290,8 @@ weight: Longint; begin weight := getPixelWeight(x, y); + if (land[y, x] and lfIce) <> 0 then + exit; if isLandscape(weight) then begin // So. 3 parameters here. Ice colour, Ice opacity, and a bias on the greyscaled pixel towards lightness