hedgewars/hwengine.pas
changeset 7286 068adc6948e3
parent 7235 baa69bd025d9
child 7306 3cff5c769509
--- a/hedgewars/hwengine.pas	Sun Jun 24 21:32:33 2012 +0400
+++ b/hedgewars/hwengine.pas	Sun Jun 24 21:33:45 2012 +0400
@@ -360,9 +360,11 @@
     SDLTry(TTF_Init() <> -1, true);
     WriteLnToConsole(msgOK);
 
+{$IFDEF USE_VIDEO_RECORDING}
     if GameType = gmtRecord then
         InitOffscreenOpenGL()
     else
+{$ENDIF}
         begin            
         // show main window
         if cFullScreen then
@@ -415,7 +417,7 @@
     isDeveloperMode:= false;
     TryDo(InitStepsFlags = cifAllInited, 'Some parameters not set (flags = ' + inttostr(InitStepsFlags) + ')', true);
     ParseCommand('rotmask', true);
-    
+
 {$IFDEF USE_VIDEO_RECORDING}
     if GameType = gmtRecord then
         RecorderMainLoop()
@@ -504,7 +506,7 @@
         //uAIAmmoTests does not need to be freed
         //uAIActions does not need to be freed
         uStore.freeModule;
-        uVideoRec.freeModule;
+{$IFDEF USE_VIDEO_RECORDING}uVideoRec.freeModule;{$ENDIF}
     end;
 
     uIO.freeModule;