changeset 114:a143b077a825

Re #54: Add Army support to WarFoundryFactory * Make sure that race and sub-race IDs are lower case so that we can find them when we load
author IBBoard <dev@ibboard.co.uk>
date Sat, 22 Aug 2009 18:35:03 +0000
parents 5ebbffd4a05f
children d0c60b3204c1
files api/WarFoundryLoader.cs
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/api/WarFoundryLoader.cs	Sat Aug 22 18:22:40 2009 +0000
     1.2 +++ b/api/WarFoundryLoader.cs	Sat Aug 22 18:35:03 2009 +0000
     1.3 @@ -720,8 +720,10 @@
     1.4  			Race race = null;
     1.5  			
     1.6  			systemID = systemID.ToLower();
     1.7 +			raceID = raceID.ToLower();
     1.8 +			raceSubID = raceSubID.ToLower();
     1.9  
    1.10 -			Dictionary<string, Dictionary<string, Race>> races;
    1.11 +			Dictionary<string, Dictionary<string, Race>> races;	
    1.12  			racesTable.TryGetValue(systemID, out races);
    1.13  
    1.14  			if (races!=null)