# HG changeset patch # User nemo # Date 1300647601 14400 # Node ID 46da78d7966b11bdf6bf21ffbda0f9de37e41128 # Parent e26f430be1ed7c15e6427233ed52e741ec3b215d remove ammo if you suicide in the middle of uses diff -r e26f430be1ed -r 46da78d7966b hedgewars/uGears.pas --- a/hedgewars/uGears.pas Sun Mar 20 12:52:36 2011 -0400 +++ b/hedgewars/uGears.pas Sun Mar 20 15:00:01 2011 -0400 @@ -583,7 +583,10 @@ team:= Gear^.Hedgehog^.Team; if CurrentHedgehog^.Gear = Gear then + begin FreeActionsList; // to avoid ThinkThread on drawned gear + if ((Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NoRoundEnd) <> 0) and (CurrentHedgehog^.MultiShootAttacks > 0) then OnUsedAmmo(CurrentHedgehog^); + end; Gear^.Hedgehog^.Gear:= nil; if Gear^.Hedgehog^.King then