From d382fa46fd3b75d13ba7512e5a988a00d403f919 Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Mon, 16 Jul 2012 23:03:56 +0000 Subject: [PATCH] fix for wrong CRCs in Mod menu --- source/glest_game/menu/menu_state_mods.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/glest_game/menu/menu_state_mods.cpp b/source/glest_game/menu/menu_state_mods.cpp index 7ebf05b1f..d8dabf332 100644 --- a/source/glest_game/menu/menu_state_mods.cpp +++ b/source/glest_game/menu/menu_state_mods.cpp @@ -889,7 +889,7 @@ string MenuStateMods::refreshTechModInfo(string techInfo) { if(itemPath.empty()==false){ bool forceRefresh = (mapCRCUpdateList.find(itemPath) == mapCRCUpdateList.end()); int crc=getFolderTreeContentsCheckSumRecursively(itemPath, ".xml", NULL,forceRefresh); - modinfo.localCRC=intToStr(crc); + modinfo.localCRC=uIntToStr(crc); //printf("itemPath='%s' remote crc:'%s' local crc:'%s' crc='%d' \n",itemPath.c_str(),modinfo.crc.c_str(),modinfo.localCRC.c_str(),crc); } else { @@ -939,7 +939,7 @@ string MenuStateMods::refreshTilesetModInfo(string tilesetInfo) { if(itemPath.empty()==false){ bool forceRefresh = (mapCRCUpdateList.find(itemPath) == mapCRCUpdateList.end()); int crc=getFolderTreeContentsCheckSumRecursively(itemPath, ".xml", NULL,forceRefresh); - modinfo.localCRC=intToStr(crc); + modinfo.localCRC=uIntToStr(crc); //printf("itemPath='%s' remote crc:'%s' local crc:'%s' crc='%d' \n",itemPath.c_str(),modinfo.crc.c_str(),modinfo.localCRC.c_str(),crc); } else { @@ -1041,7 +1041,7 @@ string MenuStateMods::getMapCRC(string mapName) { if (fileExists(itemPath)){ checksum.addFile(itemPath); int crc=checksum.getSum(); - result=intToStr(crc); + result=uIntToStr(crc); //printf("itemPath='%s' modinfo.name='%s' remote crc:'%s' local crc:'%s' crc='%d' \n",itemPath.c_str(),modinfo.name.c_str(),modinfo.crc.c_str(),modinfo.localCRC.c_str(),crc); } else result=""; @@ -1090,7 +1090,7 @@ string MenuStateMods::refreshScenarioModInfo(string scenarioInfo) { if(itemPath.empty()==false){ bool forceRefresh = (mapCRCUpdateList.find(itemPath) == mapCRCUpdateList.end()); int crc=getFolderTreeContentsCheckSumRecursively(itemPath, ".xml", NULL,forceRefresh); - modinfo.localCRC=intToStr(crc); + modinfo.localCRC=uIntToStr(crc); //printf(" itemPath='%s' remote crc:'%s' local crc:'%s' crc='%d' \n",itemPath.c_str(),modinfo.crc.c_str(),modinfo.localCRC.c_str(),crc); } else {