hedgewars/uIO.pas
changeset 10560 9f09196d92a6
parent 10510 9329dab04490
child 10562 3388822b3914
--- a/hedgewars/uIO.pas	Fri Nov 28 14:58:33 2014 -0500
+++ b/hedgewars/uIO.pas	Sat Nov 29 01:19:29 2014 +0100
@@ -350,7 +350,7 @@
 
 while (headcmd <> nil)
     and (tmpflag or (headcmd^.cmd = '#')) // '#' is the only cmd which can be sent within same tick after 'N'
-    and ((GameTicks = hiTicks shl 16 + headcmd^.loTime)
+    and ((GameTicks = LongWord(hiTicks shl 16 + headcmd^.loTime))
         or (headcmd^.cmd = 's') // for these commands time is not specified
         or (headcmd^.cmd = 'h') // seems the hedgewars protocol does not allow remote synced commands
         or (headcmd^.cmd = '#') // must be synced for saves to work