hedgewars/uTeams.pas
changeset 14048 084db65b3657
parent 14042 006f97a6f6a7
child 14073 ff6e67066fd0
--- a/hedgewars/uTeams.pas	Wed Oct 31 18:41:02 2018 +0100
+++ b/hedgewars/uTeams.pas	Wed Oct 31 15:32:47 2018 -0400
@@ -435,7 +435,7 @@
         NextClan:= false;
         end;
 
-    if (GameFlags and gfSwitchHog) <> 0 then
+    if ((GameFlags and gfSwitchHog) <> 0) and not(CurrentTeam^.hasGone) then
         begin
         g:= AddGear(hwRound(CurrentHedgehog^.Gear^.X), hwRound(CurrentHedgehog^.Gear^.Y), gtSwitcher, 0, _0, _0, 0);
         CurAmmoGear:= g;