hedgewars/uTeams.pas
changeset 15074 e3b3fa42a93b
parent 15073 1a754860b0e5
child 15241 ceb289e8a582
--- a/hedgewars/uTeams.pas	Sun May 26 14:16:35 2019 +0200
+++ b/hedgewars/uTeams.pas	Sun May 26 14:27:55 2019 +0200
@@ -563,7 +563,8 @@
         begin
         if (not ExtDriven) and (Hedgehogs[0].BotLevel = 0) then
             begin
-            Clan^.LocalOrAlly:= true;
+            if (MissionTeam = nil) or (MissionTeam^.TeamName = TeamName) then
+                Clan^.LocalOrAlly:= true;
             LocalTeam:= t;
             LocalAmmo:= Hedgehogs[0].AmmoStore
             end;