hedgewars/uTeams.pas
changeset 15337 63372e3879df
parent 15220 ceb289e8a582
child 15442 6031c0cfec89
equal deleted inserted replaced
15336:f53bfe04065e 15337:63372e3879df
   451 
   451 
   452     // Enable switching mode when gfSwitchHog is active
   452     // Enable switching mode when gfSwitchHog is active
   453     if ((GameFlags and gfSwitchHog) <> 0) and (not CurrentTeam^.hasGone) and
   453     if ((GameFlags and gfSwitchHog) <> 0) and (not CurrentTeam^.hasGone) and
   454             // Exception: During the special "Place your King" round in King Mode;
   454             // Exception: During the special "Place your King" round in King Mode;
   455             // you're not supposed to switch away from your king in this round.
   455             // you're not supposed to switch away from your king in this round.
   456             (not (((GameFlags and gfKing) <> 0) and ((GameFlags and gfPlaceHog) = 0) and (TotalRoundsReal <= 0))) then
   456             (not (((GameFlags and gfKing) <> 0) and ((GameFlags and gfPlaceHog) = 0) and (TotalRoundsReal = -1))) then
   457         begin
   457         begin
   458         g:= AddGear(hwRound(CurrentHedgehog^.Gear^.X), hwRound(CurrentHedgehog^.Gear^.Y), gtSwitcher, 0, _0, _0, 0);
   458         g:= AddGear(hwRound(CurrentHedgehog^.Gear^.X), hwRound(CurrentHedgehog^.Gear^.Y), gtSwitcher, 0, _0, _0, 0);
   459         CurAmmoGear:= g;
   459         CurAmmoGear:= g;
   460         lastGearByUID:= g;
   460         lastGearByUID:= g;
   461         end
   461         end