# HG changeset patch # User unc0rr # Date 1393966388 -14400 # Node ID ea022e9483c24f6a50c1bd7e41083f1c2bbb8033 # Parent c92668840ea8c46ab865543a51052a1125882d96 Don't call halt() diff -r c92668840ea8 -r ea022e9483c2 hedgewars/hwengine.pas --- a/hedgewars/hwengine.pas Tue Mar 04 00:40:23 2014 +0400 +++ b/hedgewars/hwengine.pas Wed Mar 05 00:53:08 2014 +0400 @@ -570,11 +570,12 @@ Game(); // return 1 when engine is not called correctly - {$IFDEF PAS2C OR HWLIBRARY} - exit(LongInt(GameType = gmtSyntax)); - {$ELSE} - halt(LongInt(GameType = gmtSyntax)); - {$ENDIF} + if GameType = gmtSyntax then + {$IFDEF PAS2C} + exit(1); + {$ELSE} + halt(1); + {$ENDIF} {$IFDEF HWLIBRARY} end;