fix bogus colors in chat
This commit is contained in:
@@ -45,7 +45,7 @@ namespace OpenRA.Network
|
|||||||
{
|
{
|
||||||
var player = world != null ? world.FindPlayerByClient(client) : null;
|
var player = world != null ? world.FindPlayerByClient(client) : null;
|
||||||
var suffix = (player != null && player.WinState == WinState.Lost) ? " (Dead)" : "";
|
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
|
else
|
||||||
Game.AddChatLine(Color.White, "(player {0})".F(clientId), order.TargetString);
|
Game.AddChatLine(Color.White, "(player {0})".F(clientId), order.TargetString);
|
||||||
@@ -69,7 +69,7 @@ namespace OpenRA.Network
|
|||||||
if (world == null)
|
if (world == null)
|
||||||
{
|
{
|
||||||
if (client.Team == orderManager.LocalClient.Team)
|
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);
|
order.TargetString);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -86,7 +86,7 @@ namespace OpenRA.Network
|
|||||||
var suffix = (player != null && player.WinState == WinState.Lost)
|
var suffix = (player != null && player.WinState == WinState.Lost)
|
||||||
? " (Dead)"
|
? " (Dead)"
|
||||||
: " (Team)";
|
: " (Team)";
|
||||||
Game.AddChatLine(client.ColorRamp.GetColor(1), client.Name + suffix, order.TargetString);
|
Game.AddChatLine(client.ColorRamp.GetColor(0), client.Name + suffix, order.TargetString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user