rename RallyPoint.RallyPoint to RallyPoint.Offset
This commit is contained in:
@@ -17,8 +17,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Used to waypoint units after production or repair is finished.")]
|
||||
public class RallyPointInfo : ITraitInfo
|
||||
{
|
||||
public readonly CVec RallyPoint = new CVec(1, 3);
|
||||
public readonly string IndicatorPalettePrefix = "player";
|
||||
public readonly CVec Offset = new CVec(1, 3);
|
||||
|
||||
public object Create(ActorInitializer init) { return new RallyPoint(init.Self, this); }
|
||||
}
|
||||
|
||||
@@ -1730,6 +1730,12 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
node.Key = "SpawnActorOnDeath";
|
||||
}
|
||||
|
||||
if (engineVersion < 20150810)
|
||||
{
|
||||
if (depth == 2 && parentKey == "RallyPoint" && node.Key == "RallyPoint")
|
||||
node.Key = "Offset";
|
||||
}
|
||||
|
||||
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user