# HG changeset patch # User unc0rr # Date 1379094953 -14400 # Node ID 1e0ba74930d0ed7a5507cd44ea9c5e63e546955a # Parent 0dceffbaa4ee67b19e9ca9b4e2570e56f457476d Skip some LandPixels manipulations in stats-only mode diff -r 0dceffbaa4ee -r 1e0ba74930d0 hedgewars/uLandGraphics.pas --- a/hedgewars/uLandGraphics.pas Sat Aug 24 01:37:20 2013 +0400 +++ b/hedgewars/uLandGraphics.pas Fri Sep 13 21:55:53 2013 +0400 @@ -125,6 +125,7 @@ icePixels: PLongwordArray; w: LongWord; begin + if cOnlyStats then exit; // So. 3 parameters here. Ice colour, Ice opacity, and a bias on the greyscaled pixel towards lightness iceSurface:= SpritesData[sprIceTexture].Surface; icePixels := iceSurface^.pixels;