Resolve rally point target on first run.

This commit is contained in:
reaperrr
2019-06-02 02:32:07 +00:00
committed by Paul Chote
parent e6402d28a3
commit 8589e26dc2
3 changed files with 20 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ namespace OpenRA.Mods.Common.Traits
public IDisposable Reserve(Actor self, Actor forActor, Aircraft forAircraft)
{
if (reservedForAircraft != null && reservedForAircraft.MayYieldReservation)
reservedForAircraft.UnReserve();
reservedForAircraft.UnReserve(true);
reservedFor = forActor;
reservedForAircraft = forAircraft;
@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Traits
private void UnReserve()
{
if (reservedForAircraft != null)
reservedForAircraft.UnReserve();
reservedForAircraft.UnReserve(true);
}
void INotifyActorDisposing.Disposing(Actor self) { UnReserve(); }