Fix WithColoredOverlay upgrade rule.

This commit is contained in:
Paul Chote
2017-02-04 17:53:18 +00:00
parent a8d46adb2d
commit 53d7988ad1

View File

@@ -779,7 +779,7 @@ 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));
RenameNodeKey(node, "WithColoredOverlay");
// Remove SpiceBloom.RespawnDelay to get rid of DelayedAction, and rename GrowthDelay to Lifetime
if (engineVersion < 20170203)