Add map upgrade code for UnloadFacing removal

This commit is contained in:
ScottNZ
2014-02-12 20:34:39 +13:00
parent 3d42dc8e0f
commit 98b158e370

View File

@@ -100,6 +100,13 @@ namespace OpenRA.Utility
node.Value.Nodes.RemoveAll(n => n.Key == "JustMove");
}
// UnloadFacing was removed from Cargo
if (engineVersion < 20140212)
{
if (depth == 1 && node.Key == "Cargo")
node.Value.Nodes.RemoveAll(n => n.Key == "UnloadFacing");
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}