hedgewars/uLandTexture.pas
branchwebgl
changeset 8096 453917e94e55
parent 8026 4a4f21070479
parent 8027 e5ba3dd12531
child 9127 e350500c4edb
--- a/hedgewars/uLandTexture.pas	Wed Nov 14 00:23:29 2012 +0100
+++ b/hedgewars/uLandTexture.pas	Thu Nov 22 00:41:53 2012 +0100
@@ -67,6 +67,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);
@@ -94,6 +95,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