hedgewars/HHHandlers.inc
changeset 3431 e36dffdf7b82
parent 3430 21c08c95a672
child 3469 39e16d76d745
--- a/hedgewars/HHHandlers.inc	Thu May 06 02:00:39 2010 +0000
+++ b/hedgewars/HHHandlers.inc	Thu May 06 03:12:42 2010 +0000
@@ -277,14 +277,17 @@
             end
         else
             begin
-            OnUsedAmmo(CurrentHedgehog^);
             if ((Ammo^[CurSlot, CurAmmo].Propz) and ammoprop_NoRoundEndHint) = 0 then
                 begin
+                OnUsedAmmo(CurrentHedgehog^);
                 TurnTimeLeft:= Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].TimeAfterTurn;
                 State:= State or gstAttacked
                 end
             else
-                ApplyAmmoChanges(CurrentHedgehog^);
+                begin
+                OnUsedAmmo(CurrentHedgehog^);
+                ApplyAmmoChanges(CurrentHedgehog^)
+                end
             end;
         end
     else