changeset 426:61fae5cbba02

Re #338: WarFoundry.API - Save System Data * Fix copy-and-paste errors to pass test
author IBBoard <dev@ibboard.co.uk>
date Fri, 28 Oct 2011 20:52:29 +0100
parents 5b3e3fb11de9
children 3882b533d99d
files API/Savers/Xml/WarFoundryXmlGameSystemSaver.cs
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/API/Savers/Xml/WarFoundryXmlGameSystemSaver.cs	Wed Oct 26 15:39:55 2011 +0100
     1.2 +++ b/API/Savers/Xml/WarFoundryXmlGameSystemSaver.cs	Fri Oct 28 20:52:29 2011 +0100
     1.3 @@ -68,15 +68,15 @@
     1.4  			catElem.SetAttribute("name", (cat.HasDefaultName() ? "" : cat.Name));
     1.5  			if (cat.MinimumPoints > 0)
     1.6  			{
     1.7 -				catElem.SetAttribute("minPoints", cat.MaximumPercentage.ToString());
     1.8 +				catElem.SetAttribute("minPoints", cat.MinimumPoints.ToString());
     1.9  			}
    1.10 -			if (cat.MaximumPoints < 100)
    1.11 +			if (cat.MaximumPoints != WarFoundryCore.INFINITY)
    1.12  			{
    1.13 -				catElem.SetAttribute("maxPoints", cat.MaximumPercentage.ToString());
    1.14 +				catElem.SetAttribute("maxPoints", cat.MaximumPoints.ToString());
    1.15  			}
    1.16  			if(cat.MinimumPercentage > 0)
    1.17  			{
    1.18 -				catElem.SetAttribute("minPercentage", cat.MaximumPercentage.ToString());
    1.19 +				catElem.SetAttribute("minPercentage", cat.MinimumPercentage.ToString());
    1.20  			}
    1.21  			if(cat.MaximumPercentage < 100)
    1.22  			{