Fix bot PlaceBuilding orders.

This commit is contained in:
Paul Chote
2019-06-20 16:48:34 +00:00
committed by RoosterDragon
parent db0c6d88bf
commit 1e23c0a7b7
2 changed files with 8 additions and 5 deletions

View File

@@ -201,8 +201,11 @@ namespace OpenRA.Mods.Common.Orders
// Building to place
TargetString = variants[0].ActorInfo.Name,
// Pack the actor to associate the placement with and the alternate actor flag together
ExtraLocation = new CPos((int)queue.Actor.ActorID, variant),
// Actor ID to associate with placement may be quite large, so it gets its own uint
ExtraData = queue.Actor.ActorID,
// Actor variant will always be small enough to safely pack in a CPos
ExtraLocation = new CPos(variant, 0),
SuppressVisualFeedback = true
};