- fix crc check so it does not add special faction names (like random, etc)

This commit is contained in:
Mark Vejvoda 2011-04-24 04:31:39 +00:00
parent ac83b1a898
commit 68a906ab2a
2 changed files with 2 additions and 3 deletions

View File

@ -1209,9 +1209,8 @@ void MenuStateConnectedGame::update() {
}
}
}
factionCRCList.push_back(make_pair(factionName,factionCRC));
}
factionCRCList.push_back(make_pair(factionName,factionCRC));
}
//console.addLine("Found factions: " + intToStr(factionCRCList.size()));
}

View File

@ -2332,8 +2332,8 @@ void MenuStateCustomGame::loadGameSettings(GameSettings *gameSettings) {
if(factionCRC == 0) {
factionCRC = getFolderTreeContentsCheckSumRecursively(config.getPathListForType(ptTechs,""), "/" + gameSettings->getTech() + "/factions/" + factionName + "/*", ".xml", NULL, true);
}
factionCRCList.push_back(make_pair(factionName,factionCRC));
}
factionCRCList.push_back(make_pair(factionName,factionCRC));
}
//console.addLine("Found factions: " + intToStr(factionCRCList.size()));
lastCheckedCRCTechtreeName = gameSettings->getTech();