@@ -628,13 +628,13 @@ namespace OpenRA.Utility
|
|||||||
nodes.AddRange(addNodes);
|
nodes.AddRange(addNodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Desc("MAP", "CURRENTENGINE", "Upgrade map rules to the latest engine version.")]
|
[Desc("MAP", "CURRENTENGINE", "MOD", "Upgrade map rules to the latest engine version.")]
|
||||||
public static void UpgradeMap(string[] args)
|
public static void UpgradeMap(string[] args)
|
||||||
{
|
{
|
||||||
|
Game.modData = new ModData(args[3]);
|
||||||
var map = new Map(args[1]);
|
var map = new Map(args[1]);
|
||||||
var engineDate = Exts.ParseIntegerInvariant(args[2]);
|
var engineDate = Exts.ParseIntegerInvariant(args[2]);
|
||||||
|
|
||||||
Game.modData = new ModData(map.RequiresMod);
|
|
||||||
UpgradeWeaponRules(engineDate, ref map.WeaponDefinitions, null, 0);
|
UpgradeWeaponRules(engineDate, ref map.WeaponDefinitions, null, 0);
|
||||||
UpgradeActorRules(engineDate, ref map.RuleDefinitions, null, 0);
|
UpgradeActorRules(engineDate, ref map.RuleDefinitions, null, 0);
|
||||||
map.Save(args[1]);
|
map.Save(args[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user