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