hedgewars/uAmmos.pas
changeset 8992 5b0be812dcdb
parent 7754 e81dc9bef8b8
child 8999 b5f0fb670b38
equal deleted inserted replaced
8991:82e3a6e5d51b 8992:5b0be812dcdb
   276             if Count = 0 then
   276             if Count = 0 then
   277                 begin
   277                 begin
   278                 PackAmmo(Ammo, Ammoz[AmmoType].Slot);
   278                 PackAmmo(Ammo, Ammoz[AmmoType].Slot);
   279                 //SwitchNotHeldAmmo(Hedgehog);
   279                 //SwitchNotHeldAmmo(Hedgehog);
   280                 if CurAmmoType = amKnife then LoadHedgehogHat(Hedgehog, Hedgehog.Hat);
   280                 if CurAmmoType = amKnife then LoadHedgehogHat(Hedgehog, Hedgehog.Hat);
   281                 CurAmmoType:= amNothing
   281                 if CurAmmoGear <> nil then 
       
   282                     SetWeapon(CurAmmoGear^.AmmoType)
       
   283                 else CurAmmoType:= amNothing;
   282                 end
   284                 end
   283             end
   285             end
   284     end;
   286     end;
   285 end;
   287 end;
   286 
   288