Skip to content

Commit

Permalink
Revert "Remove CreateGroup order as the ActorGroupProxy is gone."
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote authored and reaperrr committed Jan 28, 2018
1 parent fc31fac commit 3af6ffc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OpenRA.Game/Orders/UnitOrderGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ public virtual IEnumerable<Order> Order(World world, CPos cell, int2 worldPixel,
if (!actorsInvolved.Any())
yield break;

// 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(",")
};

foreach (var o in orders)
yield return CheckSameOrder(o.Order, o.Trait.IssueOrder(o.Actor, o.Order, o.Target, mi.Modifiers.HasModifier(Modifiers.Shift)));
}
Expand Down

0 comments on commit 3af6ffc

Please sign in to comment.