- ifdef for engine exit/halt ios-revival
authorantonc27 <antonc27@mail.ru>
Thu, 10 Sep 2015 17:47:01 +0200
branchios-revival
changeset 11149 c150602921ef
parent 11148 064a53861759
child 11150 877de65e0e13
- ifdef for engine exit/halt
hedgewars/hwengine.pas
--- a/hedgewars/hwengine.pas	Thu Sep 10 01:49:15 2015 +0200
+++ b/hedgewars/hwengine.pas	Thu Sep 10 17:47:01 2015 +0200
@@ -610,9 +610,13 @@
         end;
 
     {$IFDEF PAS2C}
-    exit(HaltNoError);
+        exit(HaltNoError);
     {$ELSE}
-    exit;
+        {$IFDEF IPHONEOS}
+            exit;
+        {$ELSE}
+            halt(HaltNoError);
+        {$ENDIF}
     {$ENDIF}
 {$IFDEF HWLIBRARY}
 end;