Bugfix: P_Items were only allowed up to 10 in the ini file - now corrected to 20.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5324 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2012-06-01 17:47:51 +00:00
parent 9f9e42a004
commit defef00330
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -35,6 +35,7 @@
#include "Game Clock.h"
#include "Init.h"
#include "displaycover.h"
#include "InterfaceItemImages.h"
#endif
#include "KeyMap.h"
@@ -678,7 +679,7 @@ void LoadGameExternalOptions()
gGameExternalOptions.fUseXmlTileSets = iniReader.ReadBoolean("Data File Settings","USE_XML_TILESETS", FALSE);
//Madd: set number of pItem files to be used
gGameExternalOptions.ubNumPItems = iniReader.ReadInteger("Data File Settings","NUM_P_ITEMS", 3, 3, 10);
gGameExternalOptions.ubNumPItems = iniReader.ReadInteger("Data File Settings","NUM_P_ITEMS", 3, 3, MAX_PITEMS);
//################# Merc Recruitment Settings #################
-1
View File
@@ -203,7 +203,6 @@ BOOLEAN SoldierHandleInteractiveObject( SOLDIERTYPE *pSoldier )
UINT16 usStructureID;
INT32 sGridNo;
sGridNo = pSoldier->aiData.sPendingActionData2;
usStructureID = (UINT16)pSoldier->aiData.uiPendingActionData1;