hedgewars/HHHandlers.inc
changeset 3431 e36dffdf7b82
parent 3430 21c08c95a672
child 3469 39e16d76d745
equal deleted inserted replaced
3430:21c08c95a672 3431:e36dffdf7b82
   275             begin
   275             begin
   276             isInMultiShoot:= true
   276             isInMultiShoot:= true
   277             end
   277             end
   278         else
   278         else
   279             begin
   279             begin
   280             OnUsedAmmo(CurrentHedgehog^);
       
   281             if ((Ammo^[CurSlot, CurAmmo].Propz) and ammoprop_NoRoundEndHint) = 0 then
   280             if ((Ammo^[CurSlot, CurAmmo].Propz) and ammoprop_NoRoundEndHint) = 0 then
   282                 begin
   281                 begin
       
   282                 OnUsedAmmo(CurrentHedgehog^);
   283                 TurnTimeLeft:= Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].TimeAfterTurn;
   283                 TurnTimeLeft:= Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].TimeAfterTurn;
   284                 State:= State or gstAttacked
   284                 State:= State or gstAttacked
   285                 end
   285                 end
   286             else
   286             else
   287                 ApplyAmmoChanges(CurrentHedgehog^);
   287                 begin
       
   288                 OnUsedAmmo(CurrentHedgehog^);
       
   289                 ApplyAmmoChanges(CurrentHedgehog^)
       
   290                 end
   288             end;
   291             end;
   289         end
   292         end
   290     else
   293     else
   291         begin
   294         begin
   292         OnUsedAmmo(CurrentHedgehog^);
   295         OnUsedAmmo(CurrentHedgehog^);