hedgewars/uCommandHandlers.pas
changeset 7831 cd6c6b8d9b75
parent 7829 c1dc7839d7b9
child 7946 a99a79bbd857
equal deleted inserted replaced
7830:72e52da6ea7f 7831:cd6c6b8d9b75
   434         s[1]:= 'N';
   434         s[1]:= 'N';
   435         SDLNet_Write32(CheckSum, @s[2]);
   435         SDLNet_Write32(CheckSum, @s[2]);
   436         SendIPC(s)
   436         SendIPC(s)
   437         end
   437         end
   438     else
   438     else
   439         TryDo((lastTurnChecksum = 0) or (CheckSum = lastTurnChecksum), 'Desync detected', true);
   439         TryDo(CurrentTeam^.hasGone or (CheckSum = lastTurnChecksum), 'Desync detected', true);
   440     lastTurnChecksum:= 0;
   440 
   441     AddFileLog('Next turn: time '+inttostr(GameTicks));
   441     AddFileLog('Next turn: time '+inttostr(GameTicks));
   442 end;
   442 end;
   443 
   443 
   444 procedure chTimer(var s: shortstring);
   444 procedure chTimer(var s: shortstring);
   445 begin
   445 begin