hedgewars/uLandTexture.pas
changeset 8027 e5ba3dd12531
parent 7850 fcbb024090a4
child 8096 453917e94e55
child 9080 9b42757d7e71
--- a/hedgewars/uLandTexture.pas	Wed Nov 14 22:08:40 2012 -0500
+++ b/hedgewars/uLandTexture.pas	Wed Nov 14 22:27:05 2012 -0500
@@ -66,6 +66,7 @@
 procedure UpdateLandTexture(X, Width, Y, Height: LongInt; landAdded: boolean);
 var tx, ty: Longword;
 begin
+    if cOnlyStats then exit;
     if (Width <= 0) or (Height <= 0) then
         exit;
     TryDo((X >= 0) and (X < LAND_WIDTH), 'UpdateLandTexture: wrong X parameter', true);
@@ -93,6 +94,7 @@
 var x, y, ty, tx, lx, ly : LongWord;
     isEmpty: boolean;
 begin
+    if cOnlyStats then exit;
 (*
 if LandTextures[0, 0].tex = nil then
     for x:= 0 to LANDTEXARW -1 do