hedgewars/uAmmos.pas
changeset 5974 5bd84514856f
parent 5777 600b64455337
child 5995 647d52370ce9
equal deleted inserted replaced
5973:94abd65e7d4f 5974:5bd84514856f
   337     Timer:= 10;
   337     Timer:= 10;
   338 
   338 
   339     CurWeapon:= GetAmmoEntry(Hedgehog);
   339     CurWeapon:= GetAmmoEntry(Hedgehog);
   340 
   340 
   341     if (CurWeapon^.Count = 0) then
   341     if (CurWeapon^.Count = 0) then
   342         SwitchToFirstLegalAmmo(Hedgehog);
   342         SwitchToFirstLegalAmmo(Hedgehog)
       
   343     else if CurWeapon^.AmmoType = amNothing then Hedgehog.CurAmmoType:= amNothing;
   343 
   344 
   344     CurWeapon:= GetAmmoEntry(Hedgehog);
   345     CurWeapon:= GetAmmoEntry(Hedgehog);
   345 
   346 
   346     ApplyAngleBounds(Hedgehog, CurWeapon^.AmmoType);
   347     ApplyAngleBounds(Hedgehog, CurWeapon^.AmmoType);
   347 
   348