fake buildings now work.

This commit is contained in:
Bob
2009-10-10 23:21:31 +13:00
parent 3da8d35ce0
commit dc4c1cce1b
3 changed files with 11 additions and 6 deletions

View File

@@ -96,7 +96,7 @@ namespace OpenRa.Game.GameRules
field.SetValue( this, float.Parse( x.Value ) );
else if( field.FieldType == typeof( string ) )
field.SetValue( this, x.Value );
field.SetValue( this, x.Value.ToLowerInvariant() );
else if( field.FieldType == typeof( ArmorType ) )
field.SetValue( this, Enum<ArmorType>.Parse(x.Value) );