No hacks! Fix issue 437
authorunc0rr
Sat, 27 Oct 2012 00:20:31 +0400
changeset 7831 cd6c6b8d9b75
parent 7830 72e52da6ea7f
child 7832 0bd39a4b1a65
No hacks! Fix issue #437
hedgewars/uCommandHandlers.pas
--- a/hedgewars/uCommandHandlers.pas	Fri Oct 26 20:37:18 2012 +0200
+++ b/hedgewars/uCommandHandlers.pas	Sat Oct 27 00:20:31 2012 +0400
@@ -436,8 +436,8 @@
         SendIPC(s)
         end
     else
-        TryDo((lastTurnChecksum = 0) or (CheckSum = lastTurnChecksum), 'Desync detected', true);
-    lastTurnChecksum:= 0;
+        TryDo(CurrentTeam^.hasGone or (CheckSum = lastTurnChecksum), 'Desync detected', true);
+
     AddFileLog('Next turn: time '+inttostr(GameTicks));
 end;