Fix helicopters not taking off when their target got covered by shroud

This commit is contained in:
Oliver Brakmann
2016-09-12 23:01:16 +02:00
parent daa1f16e98
commit 9fbda6b598

View File

@@ -60,9 +60,9 @@ namespace OpenRA.Mods.Common.Activities
{
var newTarget = Target.FromCell(self.World, self.World.Map.CellContaining(target.CenterPosition));
self.CancelActivity();
Cancel(self);
self.SetTargetLine(newTarget, Color.Green);
return ActivityUtils.SequenceActivities(new HeliFly(self, newTarget));
return new HeliFly(self, newTarget);
}
// If any AmmoPool is depleted and no weapon is valid against target, return to helipad to reload and then resume the activity