hedgewars/hwengine.pas
changeset 3904 22e4d74240e5
parent 3843 50e75cb38c18
child 3914 c5c903c6225b
--- a/hedgewars/hwengine.pas	Sat Sep 25 18:38:05 2010 +0200
+++ b/hedgewars/hwengine.pas	Sun Sep 26 03:41:08 2010 +0200
@@ -266,10 +266,6 @@
     ControllerInit(); // has to happen before InitKbdKeyTable to map keys
     InitKbdKeyTable();
 
-    if recordFileName = '' then
-        InitIPC;
-    WriteLnToConsole(msgGettingConfig);
-
     LoadLocale(Pathz[ptLocale] + '/en.txt');  // Do an initial load with english
     if cLocaleFName <> 'en.txt' then
     begin
@@ -279,10 +275,19 @@
         LoadLocale(Pathz[ptLocale] + '/' + cLocaleFName);
     end;
 
+    WriteLnToConsole(msgGettingConfig);
     if recordFileName = '' then
-        SendIPCAndWaitReply('C')        // ask for game config
+    begin
+        InitIPC;
+        SendIPCAndWaitReply('C');        // ask for game config
+    end
     else
+    begin
         LoadRecordFromFile(recordFileName);
+{$IFDEF IPHONEOS}
+        replayBegan();
+{$ENDIF}
+    end;
 
     ScriptOnGameInit;