From a29516656fa12859c8f33cc4c53870fe30da1e6f Mon Sep 17 00:00:00 2001 From: reaperrr Date: Tue, 7 Jul 2015 17:27:47 +0200 Subject: [PATCH] Upgrade rule for InitialActivity removal --- OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs index 21c1c678e7..299234409f 100644 --- a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs +++ b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs @@ -1360,6 +1360,13 @@ namespace OpenRA.Mods.Common.UtilityCommands node.Key = "FlashPaletteEffect"; } + // InitialActivity on FreeActor and Buildable was removed (due to being too hacky) + if (engineVersion < 20150707) + { + if (depth == 1) + node.Value.Nodes.RemoveAll(n => n.Key == "InitialActivity"); + } + UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1); } }