Fix bot PlaceBuilding orders.
This commit is contained in:
committed by
RoosterDragon
parent
db0c6d88bf
commit
1e23c0a7b7
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user