hedgewars/hwengine.pas
changeset 3165 3ec07a7d8456
parent 3162 663e0e55e5c7
child 3236 4ab3917d7d44
equal deleted inserted replaced
3164:569fd65261d0 3165:3ec07a7d8456
   316 
   316 
   317     ParseCommand('rotmask', true);
   317     ParseCommand('rotmask', true);
   318 
   318 
   319     MainLoop();
   319     MainLoop();
   320     OnDestroy();
   320     OnDestroy();
   321     if alsoShutdownFrontend then
   321 {$IFDEF HWLIBRARY}freeEverything();{$ENDIF}
   322     begin
   322     if alsoShutdownFrontend then halt;
   323         alsoShutdownFrontend:= false;
       
   324         halt;
       
   325     end;
       
   326 end;
   323 end;
   327 
   324 
   328 procedure initEverything;
   325 procedure initEverything;
   329 begin
   326 begin
   330     uConsts.initModule;
   327     uConsts.initModule;