hedgewars/uGearsHedgehog.pas
changeset 11201 8e0e3b79efa3
parent 11046 47a8c19ecb60
child 11206 a85b0ef91685
--- 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