Suppress “<team> is gone message on game end
authorWuzzy <Wuzzy2@mail.ru>
Tue, 08 Jan 2019 03:03:21 +0100
changeset 14528 6446ddf0c0ba
parent 14527 0fc9560be9cc
child 14529 db646b3c0b95
Suppress “<team> is gone message on game end
ChangeLog.txt
hedgewars/uTeams.pas
--- a/ChangeLog.txt	Sun Jan 06 02:32:27 2019 +0100
+++ b/ChangeLog.txt	Tue Jan 08 03:03:21 2019 +0100
@@ -23,6 +23,7 @@
  * Hide most HUD elements in cinematic mode
  * Don't show "F1", "F2", etc. in ammo menu if these aren't the actual slot keys
  * Fix force-locked schemes getting unlocked when changing map types
+ * Suppress “<team> is gone.” message at end of game
 
 Lua API:
  + New call: SaveMissionVar(varname, value): Save value to mission variable (variable for non-campaign mission)
--- a/hedgewars/uTeams.pas	Sun Jan 06 02:32:27 2019 +0100
+++ b/hedgewars/uTeams.pas	Tue Jan 08 03:03:21 2019 +0100
@@ -922,7 +922,8 @@
                 begin
                 if (not hasGone) and isGoneFlagPendingToBeSet then
                     begin
-                    AddChatString(#7 + Format('* '+shortstring(trmsg[sidTeamGone]), TeamName));
+                    if (not TeamsGameOver) then
+                        AddChatString(#7 + Format('* '+shortstring(trmsg[sidTeamGone]), TeamName));
                     if not CurrentTeam^.ExtDriven then SendIPC(_S'f' + s);
                     hasGone:= true;
                     skippedTurns:= 0;