Remove floating point to avoid desync
authornikin
Sun, 20 Mar 2011 15:07:45 -0400
changeset 5034 a30772158f50
parent 5033 46da78d7966b
child 5035 a00636066077
Remove floating point to avoid desync
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Sun Mar 20 15:00:01 2011 -0400
+++ b/hedgewars/HHHandlers.inc	Sun Mar 20 15:07:45 2011 -0400
@@ -389,7 +389,7 @@
             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) and ((GameFlags and gfInfAttack) = 0) then
                 begin
                 if TagTurnTimeLeft = 0 then TagTurnTimeLeft:= TurnTimeLeft;
-                TurnTimeLeft:=round(Ammoz[a].TimeAfterTurn * (cGetAwayTime / 100));
+                TurnTimeLeft:=Ammoz[a].TimeAfterTurn * cGetAwayTime div 100;
                 end;
             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) then State:= State or gstAttacked;
             if (CurAmmoGear <> nil) and ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0) then