Remove HeliFlyAndLandWhenIdle

Already obsolete, as aircraft with CanHover do properly become idle
and land when LandOnIdle is set to 'true'.
They currently need VTOL too, but all CanHover-aircraft
in the shipping mods have that and it will be fixed soon as well.
This commit is contained in:
reaperrr
2019-05-01 14:50:03 +02:00
committed by Paul Chote
parent 27cfa9b1f0
commit 5698ea0910
2 changed files with 2 additions and 28 deletions

View File

@@ -145,30 +145,4 @@ namespace OpenRA.Mods.Common.Activities
yield return target;
}
}
public class HeliFlyAndLandWhenIdle : HeliFly
{
private readonly AircraftInfo info;
public HeliFlyAndLandWhenIdle(Actor self, Target t, AircraftInfo info)
: base(self, t)
{
this.info = info;
}
public override Activity Tick(Actor self)
{
var activity = base.Tick(self);
if (activity == null && !IsCanceling && info.LandWhenIdle)
{
if (info.TurnToLand)
self.QueueActivity(new Turn(self, info.InitialFacing));
self.QueueActivity(new Land(self));
activity = NextActivity;
}
return activity;
}
}
}