Merge HeliReturnToBase into ReturnToBase

This commit is contained in:
reaperrr
2019-02-18 19:30:57 +01:00
committed by reaperrr
parent 2a942bd04a
commit 2cdae0b380
6 changed files with 68 additions and 155 deletions

View File

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