Possible fix for #14102: Consider airfield available if already reserved for the same actor

This commit is contained in:
portablestew
2019-01-11 20:46:11 -08:00
committed by reaperrr
parent f9cf45e634
commit a49287cc97
4 changed files with 12 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.Activities
return self.World.Actors.Where(a => a.Owner == self.Owner
&& rearmable.Info.RearmActors.Contains(a.Info.Name)
&& (!unreservedOnly || !Reservable.IsReserved(a)))
&& (!unreservedOnly || Reservable.IsAvailableFor(a, self)))
.ClosestTo(self);
}
@@ -58,7 +58,7 @@ namespace OpenRA.Mods.Common.Activities
if (IsCanceled)
return NextActivity;
if (dest == null || dest.IsDead || Reservable.IsReserved(dest))
if (dest == null || dest.IsDead || !Reservable.IsAvailableFor(dest, self))
dest = ChooseResupplier(self, true);
var initialFacing = aircraft.Info.InitialFacing;