Overhaul and rename WithActiveAnimation -> WithIdleAnimation.

This commit is contained in:
Paul Chote
2016-01-02 19:25:55 +00:00
parent adaa1fa70e
commit 8ce274ed79
6 changed files with 88 additions and 75 deletions

View File

@@ -2818,6 +2818,18 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20160103)
{
// Overhauled WithActiveAnimation -> WithIdleAnimation
if (node.Key == "WithActiveAnimation")
{
node.Key = "WithIdleAnimation";
foreach (var n in node.Value.Nodes)
if (n.Key == "Sequence")
n.Key = "Sequences";
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}