hedgewars/uLandGraphics.pas
branch0.9.19
changeset 9144 1e0ba74930d0
parent 9080 9b42757d7e71
child 9521 8054d9d775fd
child 9682 aa2431ed87b2
child 9768 08799c901a42
equal deleted inserted replaced
9142:0dceffbaa4ee 9144:1e0ba74930d0
   123 var
   123 var
   124     iceSurface: PSDL_Surface;
   124     iceSurface: PSDL_Surface;
   125     icePixels: PLongwordArray;
   125     icePixels: PLongwordArray;
   126     w: LongWord;
   126     w: LongWord;
   127 begin
   127 begin
       
   128     if cOnlyStats then exit;
   128     // So. 3 parameters here. Ice colour, Ice opacity, and a bias on the greyscaled pixel towards lightness
   129     // So. 3 parameters here. Ice colour, Ice opacity, and a bias on the greyscaled pixel towards lightness
   129     iceSurface:= SpritesData[sprIceTexture].Surface;
   130     iceSurface:= SpritesData[sprIceTexture].Surface;
   130     icePixels := iceSurface^.pixels;
   131     icePixels := iceSurface^.pixels;
   131     w:= LandPixels[pixelY, pixelX];
   132     w:= LandPixels[pixelY, pixelX];
   132     if w > 0 then
   133     if w > 0 then