mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
+2
-1
@@ -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 #################
|
||||
|
||||
|
||||
@@ -203,7 +203,6 @@ BOOLEAN SoldierHandleInteractiveObject( SOLDIERTYPE *pSoldier )
|
||||
UINT16 usStructureID;
|
||||
INT32 sGridNo;
|
||||
|
||||
|
||||
sGridNo = pSoldier->aiData.sPendingActionData2;
|
||||
usStructureID = (UINT16)pSoldier->aiData.uiPendingActionData1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user