hedgewars/GSHandlers.inc
changeset 6833 a4f75b36d70d
parent 6803 0e70f3ea3bf8
child 6924 57b66ee3bff3
equal deleted inserted replaced
6832:fae8fd118da9 6833:a4f75b36d70d
  2749         repeat
  2749         repeat
  2750             CurrentTeam^.CurrHedgehog := Succ(CurrentTeam^.CurrHedgehog) mod (CurrentTeam^.HedgehogsNumber);
  2750             CurrentTeam^.CurrHedgehog := Succ(CurrentTeam^.CurrHedgehog) mod (CurrentTeam^.HedgehogsNumber);
  2751         until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil) and (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear^.Damage = 0);
  2751         until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil) and (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear^.Damage = 0);
  2752 
  2752 
  2753         CurrentHedgehog := @CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog];
  2753         CurrentHedgehog := @CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog];
       
  2754         AmmoMenuInvalidated:= true; 
  2754 
  2755 
  2755         HHGear := CurrentHedgehog^.Gear;
  2756         HHGear := CurrentHedgehog^.Gear;
  2756         HHGear^.State := State;
  2757         HHGear^.State := State;
  2757         HHGear^.Active := true;
  2758         HHGear^.Active := true;
  2758         FollowGear := HHGear;
  2759         FollowGear := HHGear;