Also convert the message if current team is gone
authorunc0rr
Sun, 24 Aug 2014 23:41:06 +0400
changeset 10398 d9cf9ef08ba7
parent 10397 314164a9c912
child 10399 22fbc79acd5b
Also convert the message if current team is gone
hedgewars/uTeams.pas
--- a/hedgewars/uTeams.pas	Sun Aug 24 15:18:26 2014 -0400
+++ b/hedgewars/uTeams.pas	Sun Aug 24 23:41:06 2014 +0400
@@ -677,7 +677,7 @@
     begin
         TeamsArray[t]^.isGoneFlagPendingToBeSet:= true;
 
-        if (not CurrentTeam^.ExtDriven) or (CurrentTeam^.TeamName = s) then
+        if (not CurrentTeam^.ExtDriven) or (CurrentTeam^.TeamName = s) or (CurrentTeam^.hasGone) then
             ParseCommand('/teamgone s' + s, true);
     end;
 end;