Enable spectator team chat in the lobby

This commit is contained in:
abcdefg30
2019-04-14 14:38:00 +02:00
committed by Paul Chote
parent e6feba8884
commit 6163523334
2 changed files with 11 additions and 3 deletions

View File

@@ -80,8 +80,9 @@ namespace OpenRA.Network
// We are still in the lobby
if (world == null)
{
var prefix = order.ExtraData == uint.MaxValue ? "[Spectators] " : "[Team] ";
if (orderManager.LocalClient != null && client.Team == orderManager.LocalClient.Team)
Game.AddChatLine(client.Color, "[Team] " + client.Name, message);
Game.AddChatLine(client.Color, prefix + client.Name, message);
break;
}