hedgewars/uCommands.pas
changeset 7412 9e5aa3c8dc62
parent 7409 fd91aa100ce0
child 7426 55b49cc1f33a
--- a/hedgewars/uCommands.pas	Fri Jul 20 19:56:58 2012 -0400
+++ b/hedgewars/uCommands.pas	Fri Jul 20 21:15:38 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