Added Replays are showing team chats
This commit is contained in:
@@ -84,9 +84,9 @@ namespace OpenRA.Network
|
|||||||
var player = world.FindPlayerByClient(client);
|
var player = world.FindPlayerByClient(client);
|
||||||
if (player != null && player.WinState == WinState.Lost)
|
if (player != null && player.WinState == WinState.Lost)
|
||||||
Game.AddChatLine(client.Color.RGB, client.Name + " (Dead)", order.TargetString);
|
Game.AddChatLine(client.Color.RGB, client.Name + " (Dead)", order.TargetString);
|
||||||
else if (player != null && world.LocalPlayer != null && player.Stances[world.LocalPlayer] == Stance.Ally)
|
else if ((player != null && world.LocalPlayer != null && player.Stances[world.LocalPlayer] == Stance.Ally) || (world.IsReplay && player != null))
|
||||||
Game.AddChatLine(client.Color.RGB, "[Team] " + client.Name, order.TargetString);
|
Game.AddChatLine(client.Color.RGB, "[Team" + (world.IsReplay ? " " + client.Team : "") + "] " + client.Name, order.TargetString);
|
||||||
else if (orderManager.LocalClient != null && orderManager.LocalClient.IsObserver && client.IsObserver)
|
else if ((orderManager.LocalClient != null && orderManager.LocalClient.IsObserver && client.IsObserver) || (world.IsReplay && client.IsObserver))
|
||||||
Game.AddChatLine(client.Color.RGB, "[Spectators] " + client.Name, order.TargetString);
|
Game.AddChatLine(client.Color.RGB, "[Spectators] " + client.Name, order.TargetString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user