hedgewars/HHHandlers.inc
changeset 3945 c3d5eace0a32
parent 3943 9835060e5c01
child 3949 4c4c0a2507cc
--- 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