unhack weird neutral player getter
This commit is contained in:
@@ -51,10 +51,7 @@ namespace OpenRA
|
|||||||
get { return players[localPlayerIndex]; }
|
get { return players[localPlayerIndex]; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public Player NeutralPlayer
|
public Player NeutralPlayer { get; private set; }
|
||||||
{
|
|
||||||
get { return players.Single(p => p.Value.InternalName == "Neutral").Value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetLocalPlayer(int index)
|
public void SetLocalPlayer(int index)
|
||||||
{
|
{
|
||||||
@@ -95,7 +92,7 @@ namespace OpenRA
|
|||||||
Timer.Time("renderer: {0}");
|
Timer.Time("renderer: {0}");
|
||||||
|
|
||||||
WorldActor = CreateActor("World", new int2(int.MaxValue, int.MaxValue), null);
|
WorldActor = CreateActor("World", new int2(int.MaxValue, int.MaxValue), null);
|
||||||
AddPlayer(new Player(this, null)); // add the neutral player
|
AddPlayer(NeutralPlayer = new Player(this, null)); // add the neutral player
|
||||||
|
|
||||||
Timer.Time( "worldActor: {0}" );
|
Timer.Time( "worldActor: {0}" );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user