the "PlaceBuilding" order now passes position as top-left, not center.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user