lots more fixes; still doesnt work

This commit is contained in:
Chris Forbes
2010-03-17 20:28:46 +13:00
parent f6b4f70cd7
commit 16f9f5ce89
6 changed files with 11 additions and 12 deletions

View File

@@ -32,8 +32,9 @@ namespace OpenRA.Network
{
case "Chat":
{
var player = world.players.Values.Where( p => p.Index == clientId ).Single();
Game.chat.AddLine(player, order.TargetString);
var client = Game.LobbyInfo.Clients.FirstOrDefault(c => c.Index == clientId);
if (client != null)
Game.chat.AddLine(client, order.TargetString);
break;
}
case "StartGame":