# HG changeset patch # User nemo # Date 1443990655 14400 # Node ID 8e0e3b79efa3694a5a8d7e520208f11a8efd48dd # Parent f4cf2cdea8e545b015fb791da9c1b4fe4d53618d Avoid waiting past end of turn for smine. diff -r f4cf2cdea8e5 -r 8e0e3b79efa3 hedgewars/uGearsHedgehog.pas --- a/hedgewars/uGearsHedgehog.pas Sat Oct 03 17:02:57 2015 -0400 +++ b/hedgewars/uGearsHedgehog.pas Sun Oct 04 16:30:55 2015 -0400 @@ -451,7 +451,7 @@ if CurAmmoType = amAirMine then newGear^.Hedgehog:= nil; if ((CurAmmoType = amMine) or (CurAmmoType = amSMine) or (CurAmmoType = amAirMine)) and (GameFlags and gfInfAttack <> 0) then - newGear^.FlightTime:= GameTicks + 1000 + newGear^.FlightTime:= GameTicks + min(TurnTimeLeft,1000) else if CurAmmoType = amDrill then newGear^.FlightTime:= GameTicks + 250; if Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NeedTarget <> 0 then