hedgewars/uTeams.pas
changeset 6622 01889d5bc79b
parent 6580 6155187bf599
child 6691 79c96abd06d6
equal deleted inserted replaced
6621:cc94940fe438 6622:01889d5bc79b
   181         until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil) or (PrevTeam = CurrTeam) or ((CurrTeam = TagTeamIndex) and ((GameFlags and gfTagTeam) <> 0));
   181         until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil) or (PrevTeam = CurrTeam) or ((CurrTeam = TagTeamIndex) and ((GameFlags and gfTagTeam) <> 0));
   182         end
   182         end
   183 until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil);
   183 until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil);
   184 
   184 
   185 CurrentHedgehog:= @(CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog]);
   185 CurrentHedgehog:= @(CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog]);
       
   186 
       
   187 AmmoMenuInvalidated:= true;
   186 end;
   188 end;
   187 
   189 
   188 procedure AfterSwitchHedgehog;
   190 procedure AfterSwitchHedgehog;
   189 var i, t: LongInt;
   191 var i, t: LongInt;
   190     CurWeapon: PAmmo;
   192     CurWeapon: PAmmo;