hedgewars/hwengine.pas
changeset 8039 a3b86c1f63b4
parent 8027 e5ba3dd12531
child 8057 93e16240f178
equal deleted inserted replaced
8036:89740f927254 8039:a3b86c1f63b4
   106             end;
   106             end;
   107         gsSuspend:
   107         gsSuspend:
   108             exit(false);
   108             exit(false);
   109             end;
   109             end;
   110 
   110 
   111     SwapBuffers;
   111     if not cOnlyStats then SwapBuffers;
   112 
   112 
   113 {$IFDEF USE_VIDEO_RECORDING}
   113 {$IFDEF USE_VIDEO_RECORDING}
   114     if flagPrerecording then
   114     if flagPrerecording then
   115         SaveCameraPosition;
   115         SaveCameraPosition;
   116 {$ENDIF}
   116 {$ENDIF}
   352     for p:= Succ(Low(TPathType)) to High(TPathType) do
   352     for p:= Succ(Low(TPathType)) to High(TPathType) do
   353         if p <> ptMapCurrent then
   353         if p <> ptMapCurrent then
   354             Pathz[p]:= PathPrefix + '/' + Pathz[p];
   354             Pathz[p]:= PathPrefix + '/' + Pathz[p];
   355 
   355 
   356     WriteToConsole('Init SDL... ');
   356     WriteToConsole('Init SDL... ');
   357     SDLTry(SDL_Init(SDL_INIT_VIDEO or SDL_INIT_NOPARACHUTE) >= 0, true);
   357     if not cOnlyStats then SDLTry(SDL_Init(SDL_INIT_VIDEO or SDL_INIT_NOPARACHUTE) >= 0, true);
   358     WriteLnToConsole(msgOK);
   358     WriteLnToConsole(msgOK);
   359 
   359 
   360     SDL_EnableUNICODE(1);
   360     SDL_EnableUNICODE(1);
   361     SDL_ShowCursor(0);
   361     SDL_ShowCursor(0);
   362 
   362