Add ITargetablePositions seperating it from ITargetable

This commit is contained in:
atlimit8
2015-07-13 15:22:39 -05:00
parent f5c3575c5a
commit 23d0424437
34 changed files with 124 additions and 165 deletions

View File

@@ -1965,6 +1965,17 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20150902)
{
if (depth == 1)
{
if (node.Key == "TargetableUnit" || node.Key == "TargetableBuilding")
node.Key = "Targetable";
else if (node.Key == "-TargetableUnit" || node.Key == "-TargetableBuilding")
node.Key = "-Targetable";
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}