hedgewars/uAmmos.pas
changeset 3028 d17cf923d7c3
parent 2991 142ea64ce8a2
child 3030 411146650700
equal deleted inserted replaced
3027:32890edaa483 3028:d17cf923d7c3
   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     Gear^.Timer2:= 10;
   291 
   291 
   292     if (Ammo^[CurSlot, CurAmmo].Count = 0) then
   292     if (Ammo^[CurSlot, CurAmmo].Count = 0) then
   293         SwitchToFirstLegalAmmo(Hedgehog);
   293         SwitchToFirstLegalAmmo(Hedgehog);
   294 
   294 
   295         //bad things could happen here in case CurSlot is overflowing
   295         //bad things could happen here in case CurSlot is overflowing