fixed.
This commit is contained in:
@@ -35,7 +35,8 @@ namespace OpenRA.FileFormats
|
|||||||
public static void Load(object self, MiniYaml my)
|
public static void Load(object self, MiniYaml my)
|
||||||
{
|
{
|
||||||
foreach (var x in my.Nodes)
|
foreach (var x in my.Nodes)
|
||||||
LoadField( self, x.Key, x.Value.Value );
|
if (!x.Key.StartsWith("-"))
|
||||||
|
LoadField( self, x.Key, x.Value.Value );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void LoadField( object self, string key, string value )
|
public static void LoadField( object self, string key, string value )
|
||||||
|
|||||||
@@ -113,9 +113,10 @@ namespace OpenRA.FileFormats
|
|||||||
a.TryGetValue( key, out aa );
|
a.TryGetValue( key, out aa );
|
||||||
b.TryGetValue( key, out bb );
|
b.TryGetValue( key, out bb );
|
||||||
|
|
||||||
if( key.Length > 0 && key[ 0 ] == '-' )
|
// if( key.Length > 0 && key[ 0 ] == '-' )
|
||||||
continue;
|
// continue;
|
||||||
else if( noInherit.Contains( key ) )
|
// else
|
||||||
|
if( noInherit.Contains( key ) )
|
||||||
{
|
{
|
||||||
if( aa != null )
|
if( aa != null )
|
||||||
ret.Add( key, aa );
|
ret.Add( key, aa );
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace OpenRA.GameRules
|
|||||||
Category = categoryNode.Value;
|
Category = categoryNode.Value;
|
||||||
|
|
||||||
foreach( var t in mergedNode )
|
foreach( var t in mergedNode )
|
||||||
if( t.Key != "Inherits" && t.Key != "Category" )
|
if( t.Key != "Inherits" && t.Key != "Category" && !t.Key.StartsWith("-") )
|
||||||
Traits.Add( LoadTraitInfo( t.Key, t.Value ) );
|
Traits.Add( LoadTraitInfo( t.Key, t.Value ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user