diff -r 4ef83bcb850b -r d23731fe84d4 hedgewars/hwengine.pas --- a/hedgewars/hwengine.pas Sun Jul 15 14:21:06 2018 +0200 +++ b/hedgewars/hwengine.pas Sun Jul 15 19:49:31 2018 +0200 @@ -630,11 +630,11 @@ if GameType = gmtLandPreview then GenLandPreview() - else if GameType <> gmtSyntax then + else if (GameType <> gmtBadSyntax) and (GameType <> gmtSyntaxHelp) then Game(); - // return 1 when engine is not called correctly - if GameType = gmtSyntax then + // return error when engine is not called correctly + if GameType = gmtBadSyntax then {$IFDEF PAS2C} exit(HaltUsageError); {$ELSE}