added protocol versioning. AssignPlayer order is dead.

This commit is contained in:
Chris Forbes
2010-01-25 18:29:56 +13:00
parent 0998e1f17b
commit be8bb20e82
7 changed files with 35 additions and 23 deletions

View File

@@ -21,10 +21,15 @@ namespace OpenRa
public Player LocalPlayer
{
get { return players[localPlayerIndex]; }
set
}
public void SetLocalPlayer(int index)
{
if (index != localPlayerIndex)
{
localPlayerIndex = value.Index;
Game.viewport.GoToStartLocation( value );
localPlayerIndex = index;
Game.viewport.GoToStartLocation(LocalPlayer);
Game.chat.AddLine(LocalPlayer, "is now YOU");
}
}