hedgewars/uAmmos.pas
changeset 2991 142ea64ce8a2
parent 2948 3f21a9dc93d0
child 3028 d17cf923d7c3
equal deleted inserted replaced
2990:b62e567f17b9 2991:142ea64ce8a2
   285 begin
   285 begin
   286 TargetPoint.X:= NoPointX;
   286 TargetPoint.X:= NoPointX;
   287 
   287 
   288 with Hedgehog do
   288 with Hedgehog do
   289     begin
   289     begin
       
   290     Gear^.Timer:= 10;
   290 
   291 
   291     if (Ammo^[CurSlot, CurAmmo].Count = 0) then
   292     if (Ammo^[CurSlot, CurAmmo].Count = 0) then
   292         SwitchToFirstLegalAmmo(Hedgehog);
   293         SwitchToFirstLegalAmmo(Hedgehog);
   293 
   294 
   294         //bad things could happen here in case CurSlot is overflowing
   295         //bad things could happen here in case CurSlot is overflowing