PlaceBuilding now works on behalf of an actor, not a player.

This commit is contained in:
Bob
2009-12-16 01:12:02 +13:00
parent e505726a8b
commit 6b777ddcf4
2 changed files with 8 additions and 8 deletions

View File

@@ -294,7 +294,7 @@ namespace OpenRa.Game
if (producing.Done)
{
if (group == "Building" || group == "Defense")
Game.controller.orderGenerator = new PlaceBuilding(player, item);
Game.controller.orderGenerator = new PlaceBuilding(player.PlayerActor, item);
}
else
Game.controller.AddOrder(Order.PauseProduction(player, item, false));