Make 'CloseEnough' on 'RepairableNear' use WDist

This commit is contained in:
abcdefg30
2015-12-13 01:10:38 +01:00
parent 301c2f0ca0
commit fe334906f6
2 changed files with 13 additions and 2 deletions

View File

@@ -2683,6 +2683,17 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// 'CloseEnough' on 'RepairableNear' uses WDist now
if (engineVersion < 20151214)
{
if (node.Key == "RepairableNear")
{
var ce = node.Value.Nodes.FirstOrDefault(n => n.Key == "CloseEnough");
if (ce != null && !ce.Value.Value.Contains("c"))
ce.Value.Value = ce.Value.Value + "c0";
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}