# HG changeset patch # User unc0rr # Date 1315490359 -14400 # Node ID 552371cc69ccac284c96903a30fd919a6cc0dc93 # Parent 5883d62b648b37948b612bc7c0cc4235f31acbf1 Fix loading from save desync diff -r 5883d62b648b -r 552371cc69cc hedgewars/uGears.pas --- a/hedgewars/uGears.pas Thu Sep 08 15:39:30 2011 +0400 +++ b/hedgewars/uGears.pas Thu Sep 08 17:59:19 2011 +0400 @@ -991,7 +991,10 @@ if ((GameTicks and $FFFF) = $FFFF) then begin if (not CurrentTeam^.ExtDriven) then - SendIPCTimeInc; + begin + SendIPC('#'); + AddFileLog('hiTicks increment message sent') + end; if (not CurrentTeam^.ExtDriven) or CurrentTeam^.hasGone then inc(hiTicks) // we do not recieve a message for this diff -r 5883d62b648b -r 552371cc69cc hedgewars/uIO.pas --- a/hedgewars/uIO.pas Thu Sep 08 15:39:30 2011 +0400 +++ b/hedgewars/uIO.pas Thu Sep 08 17:59:19 2011 +0400 @@ -29,7 +29,6 @@ procedure SendIPCXY(cmd: char; X, Y: SmallInt); procedure SendIPCRaw(p: pointer; len: Longword); procedure SendIPCAndWaitReply(s: shortstring); -procedure SendIPCTimeInc; procedure SendKeepAliveMessage(Lag: Longword); procedure LoadRecordFromFile(fileName: shortstring); procedure SendStat(sit: TStatInfoType; s: shortstring); @@ -246,13 +245,6 @@ SendIPC(s) end; -procedure SendIPCTimeInc; -const timeinc: shortstring = '#'; -begin -AddFileLog('[IPC out]