Fix the ExplicitSequenceFilenames rule breaking when updating single maps
This commit is contained in:
@@ -132,8 +132,14 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
|||||||
var implicitInheritedSequences = new List<string>();
|
var implicitInheritedSequences = new List<string>();
|
||||||
foreach (var resolvedSequenceNode in resolvedImageNode.Value.Nodes)
|
foreach (var resolvedSequenceNode in resolvedImageNode.Value.Nodes)
|
||||||
{
|
{
|
||||||
if (resolvedSequenceNode.Key != "Defaults" && string.IsNullOrEmpty(resolvedSequenceNode.Value.Value) &&
|
if (resolvedSequenceNode.Key == "Defaults")
|
||||||
imageNode.LastChildMatching(resolvedSequenceNode.Key) == null)
|
continue;
|
||||||
|
|
||||||
|
// Ignore nodes that are not implicitly named or already processed
|
||||||
|
if (!string.IsNullOrEmpty(resolvedSequenceNode.Value.Value) || resolvedSequenceNode.LastChildMatching("Filename") != null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (imageNode.LastChildMatching(resolvedSequenceNode.Key) == null)
|
||||||
{
|
{
|
||||||
imageNode.AddNode(resolvedSequenceNode.Key, "");
|
imageNode.AddNode(resolvedSequenceNode.Key, "");
|
||||||
implicitInheritedSequences.Add(resolvedSequenceNode.Key);
|
implicitInheritedSequences.Add(resolvedSequenceNode.Key);
|
||||||
|
|||||||
Reference in New Issue
Block a user