Merge pull request #12162 from abcdefg30/heliHost

Fix HeliReturnToBase not exposing an host actor parameter
This commit is contained in:
reaperrr
2016-10-22 15:58:06 +02:00
committed by GitHub
3 changed files with 11 additions and 7 deletions

View File

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