# HG changeset patch # User nemo # Date 1286728332 14400 # Node ID c3d5eace0a3216f5e182d7e03c4768babc7f10ba # Parent 7ec1ef6a5ee6b2c4eb38801a7af8ae04d09221f7 Check on an infinite attacks mode, still many problems in actual weapons diff -r 7ec1ef6a5ee6 -r c3d5eace0a32 hedgewars/HHHandlers.inc --- a/hedgewars/HHHandlers.inc Sun Oct 10 12:22:57 2010 -0400 +++ b/hedgewars/HHHandlers.inc Sun Oct 10 12:32:12 2010 -0400 @@ -323,17 +323,13 @@ end else begin - if (Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) = 0 then + OnUsedAmmo(CurrentHedgehog^); + if ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) = 0) and ((GameFlags and gfInfAttack) = 0) then begin - OnUsedAmmo(CurrentHedgehog^); TurnTimeLeft:= Ammoz[CurAmmoType].TimeAfterTurn; State:= State or gstAttacked end - else - begin - OnUsedAmmo(CurrentHedgehog^); - ApplyAmmoChanges(CurrentHedgehog^) - end + else ApplyAmmoChanges(CurrentHedgehog^) end; end else