hedgewars/uLandGraphics.pas
branchwebgl
changeset 9521 8054d9d775fd
parent 9168 20ff80421736
parent 9460 7d7e4ca70f6b
child 9950 2759212a27de
equal deleted inserted replaced
9282:92af50454cf2 9521:8054d9d775fd
   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