hedgewars/hwengine.pas
changeset 9988 317d46a2afd2
parent 9651 c0a389ccb0c1
child 9998 736015b847e3
equal deleted inserted replaced
9987:8f07b47a641b 9988:317d46a2afd2
   379         end
   379         end
   380     else cLocale := 'en';
   380     else cLocale := 'en';
   381 
   381 
   382     WriteLnToConsole(msgGettingConfig);
   382     WriteLnToConsole(msgGettingConfig);
   383 
   383 
   384     if recordFileName = '' then
   384     if cTestLua then
   385         begin
   385         begin
   386         InitIPC;
   386         ParseCommand('script ' + cScriptName, true);
   387         SendIPCAndWaitReply(_S'C');        // ask for game config
       
   388         end
   387         end
   389     else
   388     else
   390         LoadRecordFromFile(recordFileName);
   389         begin
       
   390         if recordFileName = '' then
       
   391             begin
       
   392             InitIPC;
       
   393             SendIPCAndWaitReply(_S'C');        // ask for game config
       
   394             end
       
   395         else
       
   396             LoadRecordFromFile(recordFileName);
       
   397         end;
   391 
   398 
   392     ScriptOnGameInit;
   399     ScriptOnGameInit;
   393     s:= 'eproto ' + inttostr(cNetProtoVersion);
   400     s:= 'eproto ' + inttostr(cNetProtoVersion);
   394     SendIPCRaw(@s[0], Length(s) + 1); // send proto version
   401     SendIPCRaw(@s[0], Length(s) + 1); // send proto version
   395 
   402