Add plumbing for short game option

This commit is contained in:
Oliver Brakmann
2014-11-17 18:44:32 +01:00
parent 470ae17271
commit 280b30961f
7 changed files with 57 additions and 5 deletions

View File

@@ -690,6 +690,11 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// Adjust MustBeDestroyed for short games
if (engineVersion < 20141218)
if (depth == 1 && node.Key == "MustBeDestroyed")
node.Value.Nodes.Add(new MiniYamlNode("RequiredForShortGame", "true"));
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}