hedgewars/uAmmos.pas
changeset 3030 411146650700
parent 3028 d17cf923d7c3
child 3033 2a8f385ab466
equal deleted inserted replaced
3029:67483e87590c 3030:411146650700
   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^.Timer2:= 10;
   290     Timer:= 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