# HG changeset patch # User unc0rr # Date 1197560731 0 # Node ID 3710058bbd53be59a670b3353a956192b2373c1b # Parent 14400b47ed6e45f2977603c7a8fcac8654c83371 Don't spam traffic in network game diff -r 14400b47ed6e -r 3710058bbd53 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Thu Dec 13 14:34:13 2007 +0000 +++ b/hedgewars/uGears.pas Thu Dec 13 15:45:31 2007 +0000 @@ -417,12 +417,12 @@ end; if TurnTimeLeft > 0 then - if CurrentTeam <> nil then if CurrentHedgehog^.Gear <> nil then if ((CurrentHedgehog^.Gear^.State and gstAttacking) = 0) and not isInMultiShoot then dec(TurnTimeLeft); -if (GameTicks and $FFFF) = $FFFF then SendIPCTimeInc; +if (not CurrentTeam^.ExtDriven) and + ((GameTicks and $FFFF) = $FFFF) then SendIPCTimeInc; inc(GameTicks) end;