mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- external feeding checks for invalid gridno
- reordered xmls - new feature: class specific gun and item choices allows finetuning of a soldier's equipment WARNING! This exe needs GameDir revision >= 1584, as xmls have been reordered! More info under http://www.bears-pit.com/board/ubbthreads.php/topics/313782/Re_New_feature_Class_specific_.html#Post313782 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5764 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -416,7 +416,7 @@ extendedarmygunchoicesEndElementHandle(void *userData, const XML_Char *name)
|
||||
|
||||
|
||||
|
||||
BOOLEAN ReadInExtendedArmyGunChoicesStats(STR fileName)
|
||||
BOOLEAN ReadInExtendedArmyGunChoicesStats(ARMY_GUN_CHOICE_TYPE* pGunChoice, STR fileName)
|
||||
{
|
||||
HWFILE hFile;
|
||||
UINT32 uiBytesRead;
|
||||
@@ -453,7 +453,7 @@ BOOLEAN ReadInExtendedArmyGunChoicesStats(STR fileName)
|
||||
|
||||
|
||||
memset(&pData,0,sizeof(pData));
|
||||
pData.curArray = gExtendedArmyGunChoices;
|
||||
pData.curArray = pGunChoice;
|
||||
pData.maxArraySize = ARMY_GUN_LEVELS;
|
||||
|
||||
XML_SetUserData(parser, &pData);
|
||||
@@ -499,9 +499,9 @@ BOOLEAN WriteExtendedArmyGunChoicesStats()
|
||||
FilePrintf(hFile,"\t<ENEMYGUNCHOICES>\r\n");
|
||||
|
||||
FilePrintf(hFile,"\t\t<uiIndex>%d</uiIndex>\r\n", cnt );
|
||||
FilePrintf(hFile,"\t\t<ubChoices>%d</ubChoices>\r\n", gExtendedArmyGunChoices[cnt].ubChoices );
|
||||
FilePrintf(hFile,"\t\t<ubChoices>%d</ubChoices>\r\n", gExtendedArmyGunChoices[SOLDIER_CLASS_NONE][cnt].ubChoices );
|
||||
for (int i=0;i<50;i++)
|
||||
FilePrintf(hFile,"\t\t<bItemNo%d>%d</bItemNo%d>\r\n",i+1,gExtendedArmyGunChoices[cnt].bItemNo[i],i+1 );
|
||||
FilePrintf(hFile,"\t\t<bItemNo%d>%d</bItemNo%d>\r\n",i+1,gExtendedArmyGunChoices[SOLDIER_CLASS_NONE][cnt].bItemNo[i],i+1 );
|
||||
|
||||
|
||||
FilePrintf(hFile,"\t</ENEMYGUNCHOICES>\r\n");
|
||||
|
||||
Reference in New Issue
Block a user