Keep sprite ctrl groups for Dune 2000, Red Alert, Tiberian Dawn.

This commit is contained in:
Matthias Mailänder
2016-07-17 17:03:13 +02:00
parent 8452792bb1
commit 1a53bfd8a3
4 changed files with 25 additions and 0 deletions

View File

@@ -270,6 +270,16 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20160717)
{
if (depth == 0)
{
var selectionDecorations = node.Value.Nodes.FirstOrDefault(n => n.Key == "SelectionDecorations");
if (selectionDecorations != null)
node.Value.Nodes.Add(selectionDecorations = new MiniYamlNode("WithSpriteControlGroup", ""));
}
}
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}