fix player=2 weirdness with building
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user