hedgewars/uAmmos.pas
branchwebgl
changeset 8026 4a4f21070479
parent 7754 e81dc9bef8b8
child 9127 e350500c4edb
equal deleted inserted replaced
8023:7de85783b823 8026:4a4f21070479
   255         if b then // there is a free item in ammo stack
   255         if b then // there is a free item in ammo stack
   256             begin
   256             begin
   257             Ammo^[Slot, ami]:= Ammo^[Slot, ami + 1];
   257             Ammo^[Slot, ami]:= Ammo^[Slot, ami + 1];
   258             Ammo^[Slot, ami + 1].Count:= 0
   258             Ammo^[Slot, ami + 1].Count:= 0
   259             end;
   259             end;
   260     until not b;
   260     until (not b);
   261 AmmoMenuInvalidated:= true;
   261 AmmoMenuInvalidated:= true;
   262 end;
   262 end;
   263 
   263 
   264 procedure OnUsedAmmo(var Hedgehog: THedgehog);
   264 procedure OnUsedAmmo(var Hedgehog: THedgehog);
   265 var CurWeapon: PAmmo;
   265 var CurWeapon: PAmmo;