tent works, gun is a bit broken

This commit is contained in:
Chris Forbes
2009-10-09 23:34:20 +13:00
parent a08bcd9a17
commit 9f0600efe4
3 changed files with 13 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ using System.Linq;
using System.IO;
using OpenRa.FileFormats;
using OpenRa.Game.Graphics;
using IjwFramework.Types;
namespace OpenRa.Game.GameRules
{
@@ -98,7 +99,7 @@ namespace OpenRa.Game.GameRules
field.SetValue( this, x.Value );
else if( field.FieldType == typeof( ArmorType ) )
field.SetValue( this, Enum.Parse( typeof( ArmorType ), x.Value ) );
field.SetValue( this, Enum<ArmorType>.Parse(x.Value) );
else if( field.FieldType == typeof( bool ) )
field.SetValue( this, ParseYesNo( x.Value ) );