mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- Bugfix: Fixed the problem with not initialized merc quotes
o The problem was, that the file "MercQuote.xml" was never initialized. Now it should read from the file, but only if READ_PROFILE_DATA_FROM_XML = TRUE, otherwise it reads the values from prof*.dat git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5150 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -153,7 +153,7 @@ qarrayEndElementHandle(void *userData, const XML_Char *name)
|
||||
pData->currentDepth--;
|
||||
}
|
||||
|
||||
BOOLEAN ReadInQarray(QARRAY_VALUES *pQarray, STR fileName)
|
||||
BOOLEAN ReadInMercQuotes(QARRAY_VALUES *pQarray, STR fileName)
|
||||
{
|
||||
HWFILE hFile;
|
||||
UINT32 uiBytesRead;
|
||||
@@ -163,7 +163,7 @@ BOOLEAN ReadInQarray(QARRAY_VALUES *pQarray, STR fileName)
|
||||
|
||||
qarrayParseData pData;
|
||||
|
||||
DebugMsg(TOPIC_JA2, DBG_LEVEL_3, "Loading Qarray.xml" );
|
||||
DebugMsg(TOPIC_JA2, DBG_LEVEL_3, "Loading MercQuote.xml" );
|
||||
|
||||
|
||||
// Open file
|
||||
@@ -219,7 +219,7 @@ BOOLEAN ReadInQarray(QARRAY_VALUES *pQarray, STR fileName)
|
||||
|
||||
|
||||
|
||||
BOOLEAN WriteQarray(QARRAY_VALUES *pQarray, STR fileName)
|
||||
BOOLEAN WriteMercQuotes(QARRAY_VALUES *pQarray, STR fileName)
|
||||
{
|
||||
HWFILE hFile;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user