- debug code to be removed after testing with ultifd
This commit is contained in:
parent
dbc56c7ba2
commit
ec27fbe174
|
@ -1145,6 +1145,8 @@ void MenuStateConnectedGame::update() {
|
|||
//console.addLine("Checking techtree CRC [" + gameSettings->getTech() + "]");
|
||||
techCRC = getFolderTreeContentsCheckSumRecursively(config.getPathListForType(ptTechs,""), string("/") + gameSettings->getTech() + string("/*"), ".xml", NULL);
|
||||
|
||||
clientInterface->sendTextMessage("#1 TechCRC = " + intToStr(techCRC) + " remoteCRC = " + intToStr(gameSettings->getTechCRC()),-1, true, "");
|
||||
|
||||
if(techCRC != 0 && techCRC != gameSettings->getTechCRC() &&
|
||||
listBoxTechTree.getSelectedItemIndex() >= 0 &&
|
||||
listBoxTechTree.getSelectedItem() != ITEM_MISSING) {
|
||||
|
@ -1156,6 +1158,8 @@ void MenuStateConnectedGame::update() {
|
|||
if( lastUpdateDate <= 0 ||
|
||||
difftime(time(NULL),lastUpdateDate) >= REFRESH_CRC_DAY_SECONDS) {
|
||||
techCRC = getFolderTreeContentsCheckSumRecursively(config.getPathListForType(ptTechs,""), string("/") + gameSettings->getTech() + string("/*"), ".xml", NULL, true);
|
||||
|
||||
clientInterface->sendTextMessage("#2 TechCRC = " + intToStr(techCRC) + " remoteCRC = " + intToStr(gameSettings->getTechCRC()),-1, true, "");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue