Refactor unreserve actions.

This commit is contained in:
tovl
2019-08-30 22:13:09 +02:00
committed by reaperrr
parent 5787f74af9
commit 145b6a05a3
4 changed files with 29 additions and 21 deletions

View File

@@ -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)