Changed 'UpgradeOverlay' to 'WithColoredOverlay'

This commit is contained in:
abc013
2017-02-01 20:14:51 +01:00
parent 77a709a325
commit 851c8e6075
5 changed files with 13 additions and 8 deletions

View File

@@ -776,6 +776,11 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// Rename UpgradeOverlay to WithColoredOverlay
if (engineVersion < 20170201)
if (node.Key.StartsWith("UpgradeOverlay", StringComparison.Ordinal))
RenameNodeKey(node, "WithColoredOverlay" + node.Key.Substring(14));
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}