Store last color setting; hook server join in a cleaner way

This commit is contained in:
Paul Chote
2010-07-17 00:21:11 +12:00
parent 8b3a65717e
commit 5b333f4bba
3 changed files with 29 additions and 6 deletions

View File

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