Skip rally point if order is queued after resupply.

This commit is contained in:
tovl
2019-09-15 16:14:18 +02:00
committed by reaperrr
parent 09cd56b367
commit 48059e8249

View File

@@ -187,7 +187,7 @@ namespace OpenRA.Mods.Common.Activities
{
if (wasRepaired || isHostInvalid || (!stayOnResupplier && aircraft.Info.TakeOffOnResupply))
{
if (rp != null)
if (self.CurrentActivity.NextActivity == null && rp != null)
QueueChild(move.MoveTo(rp.Location, repairableNear != null ? null : host.Actor, targetLineColor: Color.Green));
else
QueueChild(new TakeOff(self));