the "PlaceBuilding" order now passes position as top-left, not center.

This commit is contained in:
Bob
2010-01-18 15:08:11 +13:00
parent 7027b239ec
commit ecf723b490
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ namespace OpenRa.Orders
yield break;
}
yield return new Order("PlaceBuilding", Producer.Owner.PlayerActor, null, xy, Building);
yield return new Order("PlaceBuilding", Producer.Owner.PlayerActor, null, topLeft, Building);
}
}

View File

@@ -22,7 +22,7 @@ namespace OpenRa.Traits
if( producing == null || producing.Item != order.TargetString || producing.RemainingTime != 0 )
return;
Game.world.CreateActor( order.TargetString, order.TargetLocation - Footprint.AdjustForBuildingSize( unit.Traits.Get<BuildingInfo>() ), order.Player );
Game.world.CreateActor( order.TargetString, order.TargetLocation, order.Player );
if (order.Player == Game.LocalPlayer)
{
Sound.Play("placbldg.aud");