From 9fbda6b598d9872c3b8d357936270d22c93c03ed Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Mon, 12 Sep 2016 23:01:16 +0200 Subject: [PATCH] Fix helicopters not taking off when their target got covered by shroud --- OpenRA.Mods.Common/Activities/Air/HeliAttack.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Activities/Air/HeliAttack.cs b/OpenRA.Mods.Common/Activities/Air/HeliAttack.cs index cb00a2af7f..8a429e6f01 100644 --- a/OpenRA.Mods.Common/Activities/Air/HeliAttack.cs +++ b/OpenRA.Mods.Common/Activities/Air/HeliAttack.cs @@ -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