hedgewars/HHHandlers.inc
changeset 3965 09eea558ba83
parent 3963 6090d2a2472e
child 3970 0f6e3219c108
--- a/hedgewars/HHHandlers.inc	Mon Oct 11 20:47:17 2010 +0200
+++ b/hedgewars/HHHandlers.inc	Mon Oct 11 14:55:13 2010 -0400
@@ -327,14 +327,14 @@
             end
         else
             begin
-            OnUsedAmmo(CurrentHedgehog^);
             if ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) = 0) and ((GameFlags and gfInfAttack) = 0) then
                 begin
                 TurnTimeLeft:= Ammoz[CurAmmoType].TimeAfterTurn;
                 State:= State or gstAttacked
                 end;
             if (Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) <> 0 then ApplyAmmoChanges(CurrentHedgehog^);
-            if (GameFlags and gfInfAttack) <> 0 then State:= State or gstAttacked
+            if (GameFlags and gfInfAttack) <> 0 then State:= State or gstAttacked;
+            OnUsedAmmo(CurrentHedgehog^)
             end;
         end
     else