ContainsCrate is redundant to LeavesHusk

This commit is contained in:
Matthias Mailänder
2014-08-03 16:22:20 +02:00
parent 57463f249c
commit 98106e2ff7
3 changed files with 10 additions and 31 deletions

View File

@@ -354,6 +354,16 @@ namespace OpenRA.Utility
}
}
if (engineVersion < 20140803)
{
// ContainsCrate was removed (use LeavesHusk instead)
if (depth == 1 && node.Key == "ContainsCrate")
{
node.Key = "LeavesHusk";
node.Value.Nodes.Add(new MiniYamlNode("HuskActor", new MiniYaml("crate")));
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}