Fix aircraft with TakeOffOnResupply not taking off

...after auto-resupply.
This commit is contained in:
reaperrr
2019-08-08 20:25:09 +02:00
committed by abcdefg30
parent ddf824b494
commit 969be686a3
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Activities
Actor dest; Actor dest;
int facing = -1; int facing = -1;
public ReturnToBase(Actor self, Actor dest = null, bool alwaysLand = true) public ReturnToBase(Actor self, Actor dest = null, bool alwaysLand = false)
{ {
this.dest = dest; this.dest = dest;
this.alwaysLand = alwaysLand; this.alwaysLand = alwaysLand;

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Scripting
[Desc("Return to the base, which is either the destination given, or an auto-selected one otherwise.")] [Desc("Return to the base, which is either the destination given, or an auto-selected one otherwise.")]
public void ReturnToBase(Actor destination = null) public void ReturnToBase(Actor destination = null)
{ {
Self.QueueActivity(new ReturnToBase(Self, destination)); Self.QueueActivity(new ReturnToBase(Self, destination, true));
} }
[ScriptActorPropertyActivity] [ScriptActorPropertyActivity]