From 808cc59c59fd62d25a9f90d071d624f7c708ca8b Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 9 Jan 2011 14:02:15 +1300 Subject: [PATCH] fix bogus colors in chat --- OpenRA.Game/Network/UnitOrders.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Game/Network/UnitOrders.cs b/OpenRA.Game/Network/UnitOrders.cs index de6de3bf5c..efd62b056b 100755 --- a/OpenRA.Game/Network/UnitOrders.cs +++ b/OpenRA.Game/Network/UnitOrders.cs @@ -45,7 +45,7 @@ namespace OpenRA.Network { var player = world != null ? world.FindPlayerByClient(client) : null; var suffix = (player != null && player.WinState == WinState.Lost) ? " (Dead)" : ""; - Game.AddChatLine(client.ColorRamp.GetColor(1), client.Name + suffix, order.TargetString); + Game.AddChatLine(client.ColorRamp.GetColor(0), client.Name + suffix, order.TargetString); } else Game.AddChatLine(Color.White, "(player {0})".F(clientId), order.TargetString); @@ -69,7 +69,7 @@ namespace OpenRA.Network if (world == null) { if (client.Team == orderManager.LocalClient.Team) - Game.AddChatLine(client.ColorRamp.GetColor(1), client.Name + " (Team)", + Game.AddChatLine(client.ColorRamp.GetColor(0), client.Name + " (Team)", order.TargetString); } else @@ -86,7 +86,7 @@ namespace OpenRA.Network var suffix = (player != null && player.WinState == WinState.Lost) ? " (Dead)" : " (Team)"; - Game.AddChatLine(client.ColorRamp.GetColor(1), client.Name + suffix, order.TargetString); + Game.AddChatLine(client.ColorRamp.GetColor(0), client.Name + suffix, order.TargetString); } } }