Merge pull request #8674 from reaperrr/rem-initact

Removed InitialActivity from FreeActor and Buildable
This commit is contained in:
Oliver Brakmann
2015-07-09 18:47:13 +02:00
12 changed files with 29 additions and 31 deletions

View File

@@ -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);
}
}