From 04913e87849ddf328ea3b0d4029f586cf46c47d4 Mon Sep 17 00:00:00 2001 From: Lesh Date: Sun, 29 Oct 2006 07:15:20 +0000 Subject: [PATCH] - debug code was removed git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@607 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Strategic/strategicmap.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Strategic/strategicmap.cpp b/Strategic/strategicmap.cpp index b84ce7e52..00a706805 100644 --- a/Strategic/strategicmap.cpp +++ b/Strategic/strategicmap.cpp @@ -531,8 +531,6 @@ citytableCharacterDataHandle(void *userData, const char *str, int len) static void XMLCALL citytableEndElementHandle(void *userData, const char *name) { - FILE *pDebug; - citytableParseData * pData = (citytableParseData *) userData; if(pData->currentDepth <= pData->maxReadDepth) //we're at the end of an element that we've been reading @@ -569,9 +567,6 @@ citytableEndElementHandle(void *userData, const char *name) pData->curElement = CITYTABLE_ELEMENT_CITYINFO; NUM_TOWNS = pData->uiHighestIndex + 1; - pDebug = fopen("towns.log", "a+t"); - fprintf(pDebug, "NUM_TOWNS = %d\n", NUM_TOWNS); - fclose(pDebug); } else if(strcmp(name, "CITY") == 0 && pData->curElement == CITYTABLE_ELEMENT_CITY) { @@ -592,23 +587,13 @@ citytableEndElementHandle(void *userData, const char *name) pData->curElement = CITYTABLE_ELEMENT_CITY; pData->curCityInfo.uiIndex = atol(pData->szCharData); - pDebug = fopen("towns.log", "a+t"); - fprintf(pDebug, "Got Index %d\n", pData->curCityInfo.uiIndex ); - fprintf(pDebug, "Highest = %d, Current = %d\n", pData->uiHighestIndex, pData->curCityInfo.uiIndex); - fclose(pDebug); if ( !pData->curCityInfo.uiIndex || pData->curCityInfo.uiIndex >= MAX_TOWNS ) { pData->curCityInfo.uiIndex = INVALID_TOWN_INDEX; - pDebug = fopen("towns.log", "a+t"); - fprintf(pDebug, "Index Discarded\n"); - fclose(pDebug); } else if ( pData->curCityInfo.uiIndex > pData->uiHighestIndex ) { pData->uiHighestIndex = pData->curCityInfo.uiIndex; - pDebug = fopen("towns.log", "a+t"); - fprintf(pDebug, "Set new Highest = %d\n", pData->uiHighestIndex); - fclose(pDebug); } } else if(strcmp(name, "townName") == 0 && pData->curElement == CITYTABLE_ELEMENT_NAME)