First step in making the Cities.xml useable with other languages (Russian.Cities.xml, ...)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2311 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2008-08-18 12:49:34 +00:00
parent 7e37a07476
commit e3dd3f5487
3 changed files with 26 additions and 4 deletions
+13 -1
View File
@@ -314,6 +314,8 @@ extern STR16 pBullseyeStrings[];
extern void HandleRPCDescription( );
BOOLEAN locTextOnly;
#ifdef CRIPPLED_VERSION
void CrippledVersionFailureToLoadMapCallBack( UINT8 bExitValue );
@@ -808,6 +810,10 @@ typedef struct
CHAR8 szCharData[MAX_CHAR_DATA_LENGTH+1];
cityInfo curCityInfo;
//cityInfo * curArray; // ROMAN: added
//UINT32 maxArraySize; // ROMAN: added
UINT32 uiRowNumber;
UINT32 uiHighestIndex;
@@ -1186,6 +1192,10 @@ BOOLEAN ReadInStrategicMapSectorTownNames(STR fileName)
memset(&pData,0,sizeof(pData));
// TODO: ROMAN
//pData.curCityInfo
NUM_TOWNS = 0;
XML_SetUserData(parser, &pData);
@@ -1208,10 +1218,12 @@ BOOLEAN ReadInStrategicMapSectorTownNames(STR fileName)
return TRUE;
}
BOOLEAN ReadInMapStructure(STR fileName)
BOOLEAN ReadInMapStructure(STR fileName, BOOLEAN localizedVersion)
{
memset(StrategicMap, 0, sizeof(StrategicMap));
locTextOnly = localizedVersion;
return ReadInStrategicMapSectorTownNames(fileName);
}