hedgewars/hwengine.pas
changeset 8039 a3b86c1f63b4
parent 8027 e5ba3dd12531
child 8057 93e16240f178
--- a/hedgewars/hwengine.pas	Thu Nov 15 13:58:49 2012 +0400
+++ b/hedgewars/hwengine.pas	Thu Nov 15 16:46:46 2012 +0100
@@ -108,7 +108,7 @@
             exit(false);
             end;
 
-    SwapBuffers;
+    if not cOnlyStats then SwapBuffers;
 
 {$IFDEF USE_VIDEO_RECORDING}
     if flagPrerecording then
@@ -354,7 +354,7 @@
             Pathz[p]:= PathPrefix + '/' + Pathz[p];
 
     WriteToConsole('Init SDL... ');
-    SDLTry(SDL_Init(SDL_INIT_VIDEO or SDL_INIT_NOPARACHUTE) >= 0, true);
+    if not cOnlyStats then SDLTry(SDL_Init(SDL_INIT_VIDEO or SDL_INIT_NOPARACHUTE) >= 0, true);
     WriteLnToConsole(msgOK);
 
     SDL_EnableUNICODE(1);