mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- updated to force faction CRC refresh when techtree crc mismatched
This commit is contained in:
parent
b196a5ba37
commit
37a7ad86a3
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user