Refactor unreserve actions.
This commit is contained in:
@@ -36,8 +36,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (self.World.Map.DistanceAboveTerrain(aircraft.CenterPosition).Length >= aircraft.Info.MinAirborneAltitude)
|
||||
return;
|
||||
|
||||
// We are taking off, so remove reservation and influence in ground cells.
|
||||
aircraft.UnReserve();
|
||||
// We are taking off, so remove influence in ground cells.
|
||||
aircraft.RemoveInfluence();
|
||||
|
||||
if (aircraft.Info.TakeoffSounds.Length > 0)
|
||||
|
||||
@@ -191,6 +191,8 @@ namespace OpenRA.Mods.Common.Activities
|
||||
QueueChild(move.MoveTo(rp.Location, repairableNear != null ? null : host.Actor));
|
||||
else
|
||||
QueueChild(new TakeOff(self));
|
||||
|
||||
aircraft.UnReserve();
|
||||
}
|
||||
|
||||
// Aircraft without TakeOffOnResupply remain on the resupplier until something else needs it
|
||||
|
||||
Reference in New Issue
Block a user