- updated to force faction CRC refresh when techtree crc mismatched

This commit is contained in:
Mark Vejvoda 2011-04-15 01:54:09 +00:00
parent b196a5ba37
commit 37a7ad86a3
1 changed files with 2 additions and 1 deletions

View File

@ -1178,7 +1178,8 @@ void MenuStateConnectedGame::update() {
const time_t REFRESH_CRC_DAY_SECONDS = 60 * 60 * 24;
if( lastUpdateDate <= 0 ||
difftime(time(NULL),lastUpdateDate) >= REFRESH_CRC_DAY_SECONDS) {
difftime(time(NULL),lastUpdateDate) >= REFRESH_CRC_DAY_SECONDS ||
(techCRC != 0 && techCRC != gameSettings->getTechCRC())) {
factionCRC = getFolderTreeContentsCheckSumRecursively(config.getPathListForType(ptTechs,""), "/" + gameSettings->getTech() + "/factions/" + factionName + "/*", ".xml", NULL, true);
}
else {