- another techtree crc fix
This commit is contained in:
parent
37a7ad86a3
commit
dbc56c7ba2
|
@ -1152,7 +1152,7 @@ void MenuStateConnectedGame::update() {
|
|||
time_t now = time(NULL);
|
||||
time_t lastUpdateDate = getFolderTreeContentsCheckSumRecursivelyLastGenerated(config.getPathListForType(ptTechs,""), string("/") + gameSettings->getTech() + string("/*"), ".xml");
|
||||
|
||||
const time_t REFRESH_CRC_DAY_SECONDS = 60 * 60 * 24;
|
||||
const time_t REFRESH_CRC_DAY_SECONDS = 60 * 60 * 1;
|
||||
if( lastUpdateDate <= 0 ||
|
||||
difftime(time(NULL),lastUpdateDate) >= REFRESH_CRC_DAY_SECONDS) {
|
||||
techCRC = getFolderTreeContentsCheckSumRecursively(config.getPathListForType(ptTechs,""), string("/") + gameSettings->getTech() + string("/*"), ".xml", NULL, true);
|
||||
|
|
Loading…
Reference in New Issue