Check is lanscape already ice icegun
authorUrbertar@gmail.com
Tue, 26 Feb 2013 16:04:35 +0200
branchicegun
changeset 8585 da608f69d853
parent 8583 f2edd6d5f958
child 8586 191bd86ba000
Check is lanscape already ice
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