hedgewars/hwengine.pas
changeset 13487 d23731fe84d4
parent 13077 c213645ff848
child 13488 dbf4f7a677be
equal deleted inserted replaced
13486:4ef83bcb850b 13487:d23731fe84d4
   628 
   628 
   629     GetParams();
   629     GetParams();
   630 
   630 
   631     if GameType = gmtLandPreview then
   631     if GameType = gmtLandPreview then
   632         GenLandPreview()
   632         GenLandPreview()
   633     else if GameType <> gmtSyntax then
   633     else if (GameType <> gmtBadSyntax) and (GameType <> gmtSyntaxHelp) then
   634         Game();
   634         Game();
   635 
   635 
   636     // return 1 when engine is not called correctly
   636     // return error when engine is not called correctly
   637     if GameType = gmtSyntax then
   637     if GameType = gmtBadSyntax then
   638         {$IFDEF PAS2C}
   638         {$IFDEF PAS2C}
   639         exit(HaltUsageError);
   639         exit(HaltUsageError);
   640         {$ELSE}
   640         {$ELSE}
   641         halt(HaltUsageError);
   641         halt(HaltUsageError);
   642         {$ENDIF}
   642         {$ENDIF}