Remove brain-dead logic from TakeOff

1. TakeOff's Tick() method never checks itself whether it is canceled
2. If NextActivity is null, TakeOff is the only activity on the queue
3. Takeoff canceling the queue then just cancels itself, with no effect at all

4. If Takeoff however is running as an inner activity, it will cancel the complete main queue, wrecking all sorts of havoc
This commit is contained in:
Oliver Brakmann
2016-09-05 19:20:51 +02:00
parent c9474a857a
commit fb1f8c4e01

View File

@@ -28,9 +28,6 @@ namespace OpenRA.Mods.Common.Activities
public override Activity Tick(Actor self)
{
if (NextActivity == null)
self.CancelActivity();
aircraft.UnReserve();
var host = aircraft.GetActorBelow();