hedgewars/uCommands.pas
changeset 7628 bc7b1d228a2c
parent 7426 55b49cc1f33a
child 7805 2a249a4faf5b
--- a/hedgewars/uCommands.pas	Thu Aug 30 12:47:41 2012 -0400
+++ b/hedgewars/uCommands.pas	Thu Aug 30 13:02:19 2012 -0400
@@ -93,9 +93,12 @@
     begin
     if t^.Name = CmdStr then
         begin
-        if t^.Rand then CheckSum:= CheckSum xor LongWord(SDLNet_Read32(@CmdStr)) xor LongWord(s[0]) xor GameTicks;
         if TrustedSource or t^.Trusted then
+            begin
+            if t^.Rand and (not CheckNoTeamOrHH) then 
+                CheckSum:= CheckSum xor LongWord(SDLNet_Read32(@CmdStr)) xor LongWord(s[0]) xor GameTicks;
             t^.Handler(s);
+            end;
         exit
         end
     else