TechTree now works in lower-case, the same as the rest of the game.

This commit is contained in:
Bob
2009-10-20 15:53:54 +13:00
parent 707ba7d957
commit a59265a661
5 changed files with 31 additions and 26 deletions

View File

@@ -66,8 +66,9 @@ namespace OpenRa.Game
void LoadSprites(string filename)
{
foreach (string line in Util.ReadAllLines(FileSystem.Open(filename)))
foreach (string l in Util.ReadAllLines(FileSystem.Open(filename)))
{
var line = l.ToLowerInvariant();
string key = line.Substring(0, line.IndexOf(','));
int secondComma = line.IndexOf(',', line.IndexOf(',') + 1);
string group = line.Substring(secondComma + 1, line.Length - secondComma - 1);