hedgewars/uAmmos.pas
changeset 9004 901ee9a8a3b4
parent 8999 b5f0fb670b38
child 9006 552517b23882
equal deleted inserted replaced
9002:2e4cf893c060 9004:901ee9a8a3b4
   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                 if CurAmmoGear <> nil then 
   281                 if CurAmmoGear <> nil then 
   282                     CurAmmoType:= CurAmmoGear^.AmmoType
   282                     SetWeapon(CurAmmoGear^.AmmoType)
   283                 else CurAmmoType:= amNothing;
   283                 else CurAmmoType:= amNothing;
   284                 end
   284                 end
   285             end
   285             end
   286     end;
   286     end;
   287 end;
   287 end;