Textfield editable names

This commit is contained in:
Paul Chote
2010-07-10 22:30:28 +12:00
parent dcf13e52c2
commit 56fb711fc6
5 changed files with 54 additions and 43 deletions

View File

@@ -53,9 +53,9 @@ namespace OpenRA
}
public void SetLocalPlayer(int index)
{
{
localPlayerIndex = index;
if (!string.IsNullOrEmpty(Game.Settings.PlayerName)
if (Game.LobbyInfo.Clients.Count > 0 && !string.IsNullOrEmpty(Game.Settings.PlayerName)
&& Game.LobbyInfo.Clients[index].Name != Game.Settings.PlayerName)
Game.IssueOrder(Order.Chat("/name " + Game.Settings.PlayerName));
}