diff --git a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs index 05f0abce1b..acab326d96 100644 --- a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs +++ b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs @@ -695,9 +695,9 @@ namespace OpenRA.Mods.Common.UtilityCommands if (depth == 1 && node.Key == "MustBeDestroyed") node.Value.Nodes.Add(new MiniYamlNode("RequiredForShortGame", "true")); - // Remove PlayMusicOnMapLoad if (engineVersion < 20150125) { + // Remove PlayMusicOnMapLoad if (depth == 0 && node.Value.Nodes.Exists(n => n.Key == "PlayMusicOnMapLoad")) { node.Value.Nodes.RemoveAll(n => n.Key == "PlayMusicOnMapLoad"); @@ -705,6 +705,10 @@ namespace OpenRA.Mods.Common.UtilityCommands Console.WriteLine("Please use the Lua API function 'PlayMusic' instead."); Console.WriteLine("See http://wiki.openra.net/Lua-API for details."); } + + // Remove TiberiumRefinery and OreRefinery + if (node.Key == "TiberiumRefinery" || node.Key == "OreRefinery") + node.Key = "Refinery"; } UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);