Refactor TakeOff
- Make it self-contained by moving actual take-off from 'Fly' to this - Make 'moveToRallyPoint' a simple boolean - Make AttackMove to rally point a child activity - Make TakeOff uninterruptible
This commit is contained in:
@@ -120,7 +120,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
{
|
||||
aircraft.AllowYieldingReservation();
|
||||
if (aircraft.Info.TakeOffOnResupply)
|
||||
Queue(self, new TakeOff(self, (a, b, c) => NextActivity == null && b.NextActivity == null));
|
||||
Queue(self, new TakeOff(self));
|
||||
}
|
||||
|
||||
return NextActivity;
|
||||
|
||||
Reference in New Issue
Block a user