Add "(Ally)" behind the name of allies in all-chat

Fixes #7518
This commit is contained in:
jabbink
2015-02-23 15:47:30 +01:00
committed by Jasper Abbink
parent 9a66fc7382
commit 1f26d900f5

View File

@@ -44,6 +44,10 @@ namespace OpenRA.Network
var player = world != null ? world.FindPlayerByClient(client) : null;
var suffix = (player != null && player.WinState == WinState.Lost) ? " (Dead)" : "";
suffix = client.IsObserver ? " (Spectator)" : suffix;
if (orderManager.LocalClient != null && client != orderManager.LocalClient && client.Team == orderManager.LocalClient.Team)
suffix += " (Ally)";
Game.AddChatLine(client.Color.RGB, client.Name + suffix, order.TargetString);
}
else