Add upgrade rule for CrateSpawner to Utility

This commit is contained in:
Curtis Shmyr
2014-02-21 21:02:53 -07:00
parent cd26a4e5fc
commit 71a5ddc176

View File

@@ -93,6 +93,19 @@ namespace OpenRA.Utility
ConvertPxToRange(ref node.Value.Value);
}
// CrateDrop was replaced with CrateSpawner
if (engineVersion < 20131231)
{
if (depth == 1 && parentKey == "World")
{
if (node.Key == "CrateDrop")
node.Key = "CrateSpawner";
if (node.Key == "-CrateDrop")
node.Key = "-CrateSpawner";
}
}
// AttackMove was generalized to support all moveable actor types
if (engineVersion < 20140116)
{