Rename the airfield parameter to destination

This commit is contained in:
abcdefg30
2016-10-05 16:05:56 +02:00
parent 55143ced87
commit 90e6a69152

View File

@@ -38,13 +38,13 @@ namespace OpenRA.Mods.Common.Scripting
} }
[ScriptActorPropertyActivity] [ScriptActorPropertyActivity]
[Desc("Return to the base, which is either the airfield 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 airfield = null) public void ReturnToBase(Actor destination = null)
{ {
if (isPlane) if (isPlane)
Self.QueueActivity(new ReturnToBase(Self, false, airfield)); Self.QueueActivity(new ReturnToBase(Self, false, destination));
else else
Self.QueueActivity(new HeliReturnToBase(Self, false, airfield)); Self.QueueActivity(new HeliReturnToBase(Self, false, destination));
} }
[ScriptActorPropertyActivity] [ScriptActorPropertyActivity]