hedgewars/uAmmos.pas
changeset 5777 600b64455337
parent 5688 fba59d6b5b6c
child 5974 5bd84514856f
equal deleted inserted replaced
5776:9c097391d8f9 5777:600b64455337
   213 if ammos[ammo] > AMMO_INFINITE then ammos[ammo]:= AMMO_INFINITE;
   213 if ammos[ammo] > AMMO_INFINITE then ammos[ammo]:= AMMO_INFINITE;
   214 
   214 
   215 FillAmmoStore(hhammo, ammos);
   215 FillAmmoStore(hhammo, ammos);
   216 CurWeapon:= GetAmmoEntry(Hedgehog);
   216 CurWeapon:= GetAmmoEntry(Hedgehog);
   217 with Hedgehog, CurWeapon^ do
   217 with Hedgehog, CurWeapon^ do
   218         if Count = 0 then
   218         if (Count = 0) or (AmmoType = amNothing) then
   219             begin
   219             begin
   220             PackAmmo(Ammo, Ammoz[AmmoType].Slot);
   220             PackAmmo(Ammo, Ammoz[AmmoType].Slot);
   221             CurAmmoType:= amNothing
   221             CurAmmoType:= amNothing
   222             end
   222             end
   223 end;
   223 end;