Replace Spy* with Disguise* for certain classes

This commit is contained in:
Curtis Shmyr
2014-03-15 14:20:57 -06:00
parent 8576c24988
commit f8f60e52bc
8 changed files with 115 additions and 97 deletions

View File

@@ -150,6 +150,19 @@ namespace OpenRA.Utility
node.Key = "Immobile";
}
// Spy was renamed to Disguise
if (engineVersion < 20140314)
{
if (depth == 1 && node.Key == "Spy")
node.Key = "Disguise";
if (depth == 1 && node.Key == "SpyToolTip")
node.Key = "DisguiseToolTip";
if (depth == 1 && node.Key == "RenderSpy")
node.Key = "RenderDisguise";
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}