Let CreateGroup use ExtraActors field.

This commit is contained in:
tovl
2019-08-31 13:01:56 +02:00
committed by abcdefg30
parent 00ce1d7ee6
commit 6fb3dc050b
2 changed files with 3 additions and 7 deletions

View File

@@ -52,10 +52,7 @@ namespace OpenRA.Orders
// HACK: This is required by the hacky player actions-per-minute calculation
// TODO: Reimplement APM properly and then remove this
yield return new Order("CreateGroup", actorsInvolved.First().Owner.PlayerActor, false)
{
TargetString = actorsInvolved.Select(a => a.ActorID).JoinWith(",")
};
yield return new Order("CreateGroup", actorsInvolved.First().Owner.PlayerActor, false, actorsInvolved.ToArray());
foreach (var o in orders)
yield return CheckSameOrder(o.Order, o.Trait.IssueOrder(o.Actor, o.Order, o.Target, mi.Modifiers.HasModifier(Modifiers.Shift)));