fix player=2 weirdness with building

This commit is contained in:
Chris Forbes
2009-10-09 22:03:40 +13:00
parent 9ffa73cf6c
commit 7708004120
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenRa.Game
public readonly WorldRenderer worldRenderer;
public readonly Controller controller;
int localPlayerIndex = 1;
int localPlayerIndex = 2;
public readonly Dictionary<int, Player> players = new Dictionary<int, Player>();

View File

@@ -61,7 +61,7 @@ namespace OpenRa.Game
public void Build(SidebarItem item)
{
if (item != null)
game.controller.orderGenerator = new PlaceBuilding(game.players[1], item.techTreeItem.tag.ToLowerInvariant());
game.controller.orderGenerator = new PlaceBuilding(game.LocalPlayer, item.techTreeItem.tag.ToLowerInvariant());
}
void LoadSprites(string filename)