# HG changeset patch
# User unc0rr
# Date 1379094953 -14400
# Node ID 7d7e4ca70f6b8eb615d66ce5f01cbc33b76332c3
# Parent  9311c3011782accadb335543d57a195c21ce6933
Skip some LandPixels manipulations in stats-only mode

diff -r 9311c3011782 -r 7d7e4ca70f6b hedgewars/uLandGraphics.pas
--- a/hedgewars/uLandGraphics.pas	Wed Sep 11 17:58:57 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;