Fix Enter cursor for non-TakeOffOnResupply

If the aircraft does not take off on resupply,
we allow it to enter resuppliers without ForceMove modifier.

ResolveOrder already handled this correctly, only the cursor
shown was wrong.
This commit is contained in:
reaperrr
2019-08-12 22:06:33 +02:00
committed by abcdefg30
parent e05dc0afe3
commit 08db7586d4

View File

@@ -931,7 +931,8 @@ namespace OpenRA.Mods.Common.Traits
target => Reservable.IsAvailableFor(target, self) && AircraftCanResupplyAt(target, true));
yield return new EnterAlliedActorTargeter<BuildingInfo>("Enter", 5,
AircraftCanEnter, target => Reservable.IsAvailableFor(target, self) && AircraftCanResupplyAt(target));
AircraftCanEnter,
target => Reservable.IsAvailableFor(target, self) && AircraftCanResupplyAt(target, !Info.TakeOffOnResupply));
yield return new AircraftMoveOrderTargeter(this);
}