hedgewars/hwengine.pas
branchqmlfrontend
changeset 11827 8c71c5a1172f
parent 11699 83c40c1eb0e7
child 11828 a69124eb7ce7
equal deleted inserted replaced
11787:bcba7938ccb5 11827:8c71c5a1172f
   425 end;
   425 end;
   426 
   426 
   427 procedure Game;
   427 procedure Game;
   428 begin
   428 begin
   429     initEverything(true);
   429     initEverything(true);
       
   430     SendIPC('TG');
   430     GameRoutine;
   431     GameRoutine;
   431     // clean up all the memory allocated
   432     // clean up all the memory allocated
   432     freeEverything(true);
   433     freeEverything(true);
   433 end;
   434 end;
   434 ///////////////////////////////////////////////////////////////////////////////
   435 ///////////////////////////////////////////////////////////////////////////////
   546         GenPreview(Preview);
   547         GenPreview(Preview);
   547     {$ELSE}
   548     {$ELSE}
   548         GenPreviewAlpha(Preview);
   549         GenPreviewAlpha(Preview);
   549     {$ENDIF}
   550     {$ENDIF}
   550         WriteLnToConsole('Sending preview...');
   551         WriteLnToConsole('Sending preview...');
       
   552         SendIPC('TP');
   551         SendIPCRaw(@Preview, sizeof(Preview));
   553         SendIPCRaw(@Preview, sizeof(Preview));
   552         SendIPCRaw(@MaxHedgehogs, sizeof(byte));
   554         SendIPCRaw(@MaxHedgehogs, sizeof(byte));
   553         WriteLnToConsole('Preview sent, disconnect');
   555         WriteLnToConsole('Preview sent, disconnect');
   554     end;
   556     end;
   555 
   557