Moved INITIAL_MERC_ARRIVAL_LOCATION from Ja2_Options.ini to Mod_Settings.ini. If Mod_Settings.ini has a value defined it will overwrite the value from Ja2_Options.ini. Otherwise it will leave it alone.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8105 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2016-03-12 09:30:18 +00:00
parent 73462c3610
commit 3fb99cfb87
3 changed files with 13 additions and 8 deletions
+4
View File
@@ -2643,6 +2643,10 @@ void LoadModSettings(){
gModSettings.iLostShipmentGridNo = iniReader.ReadInteger("Bobby Ray", "LOST_SHIPMENT_GRIDNO", 2);
//[Omerta]
gModSettings.iInitialMercArrivalLocation = iniReader.ReadInteger("Omerta", "INITIAL_MERC_ARRIVAL_LOCATION", 0);
// silversurfer: If the mod has a dropoff tile defined use the mod value instead of the default from Ja2_Options.ini
if( gModSettings.iInitialMercArrivalLocation != 0 )
gGameExternalOptions.iInitialMercArrivalLocation = gModSettings.iInitialMercArrivalLocation;
//[Drassen]
gModSettings.ubCarmenGiveRewardSectorX = iniReader.ReadInteger("Drassen", "CARMEN_GIVE_REWARD_SECTOR_X", 13);
+1
View File
@@ -2038,6 +2038,7 @@ typedef struct
INT32 iLostShipmentGridNo;
//[Omerta]
INT32 iInitialMercArrivalLocation;
//[Drassen]
//meet Carmen in sector for reward collection
+8 -8
View File
@@ -15,9 +15,9 @@
#ifdef JA2EDITOR
#ifdef JA2UB
CHAR16 zVersionLabel[256] = { L"Unfinished Business - Map Editor v1.13.8103 (Development Build)" };
CHAR16 zVersionLabel[256] = { L"Unfinished Business - Map Editor v1.13.8105 (Development Build)" };
#else
CHAR16 zVersionLabel[256] = { L"Map Editor v1.13.8103 (Development Build)" };
CHAR16 zVersionLabel[256] = { L"Map Editor v1.13.8105 (Development Build)" };
#endif
// ------------------------------
@@ -27,11 +27,11 @@
//DEBUG BUILD VERSION
#ifdef JA2UB
CHAR16 zVersionLabel[256] = { L"Debug: Unfinished Business - v1.13.8103 (Development Build)" };
CHAR16 zVersionLabel[256] = { L"Debug: Unfinished Business - v1.13.8105 (Development Build)" };
#elif defined (JA113DEMO)
CHAR16 zVersionLabel[256] = { L"Debug: JA2 Demo - v1.13.8103 (Development Build)" };
CHAR16 zVersionLabel[256] = { L"Debug: JA2 Demo - v1.13.8105 (Development Build)" };
#else
CHAR16 zVersionLabel[256] = { L"Debug: v1.13.8103 (Development Build)" };
CHAR16 zVersionLabel[256] = { L"Debug: v1.13.8105 (Development Build)" };
#endif
#elif defined CRIPPLED_VERSION
@@ -46,11 +46,11 @@
//RELEASE BUILD VERSION
#ifdef JA2UB
CHAR16 zVersionLabel[256] = { L"Release Unfinished Business - v1.13.8103 (Development Build)" };
CHAR16 zVersionLabel[256] = { L"Release Unfinished Business - v1.13.8105 (Development Build)" };
#elif defined (JA113DEMO)
CHAR16 zVersionLabel[256] = { L"Release JA2 Demo - v1.13.8103 (Development Build)" };
CHAR16 zVersionLabel[256] = { L"Release JA2 Demo - v1.13.8105 (Development Build)" };
#else
CHAR16 zVersionLabel[256] = { L"Release v1.13.8103 (Development Build)" };
CHAR16 zVersionLabel[256] = { L"Release v1.13.8105 (Development Build)" };
#endif
#endif