From f0424c1ef4f388d10de990dfbf982a8b4edbeb5d Mon Sep 17 00:00:00 2001 From: Wanne Date: Sat, 13 Jun 2009 09:46:15 +0000 Subject: [PATCH] - Bugfix: Mine income was not correctly initialized in GameSettings (fix by Headrock) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3007 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- GameSettings.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/GameSettings.cpp b/GameSettings.cpp index 948e0ef8..c6f8bdb7 100644 --- a/GameSettings.cpp +++ b/GameSettings.cpp @@ -1000,12 +1000,8 @@ void LoadGameExternalOptions() // WANNE: Always use prof.dat?? gGameExternalOptions.fAlwaysUseProfDat = iniReader.ReadBoolean("JA2 Gameplay Settings", "ALWAYS_USE_PROF_DAT", FALSE); - - // HEADROCK HAM B1: Set % of mine income, where 100% = normal - gGameExternalOptions.iMineIncomePercentage = iniReader.ReadInteger("JA2 HAM Settings","MINE_INCOME_PERCENTAGE",0); - // HEADROCK HAM B2.4: Set a threshold at 1% - otherwise game crashes on asserting mine income. - // Can anyone have a look at circumventing the income check? I don't want to cause any damage... - gGameExternalOptions.iMineIncomePercentage = __max(gGameExternalOptions.iMineIncomePercentage, 100); + // HEADROCK HAM B2.4 + gGameExternalOptions.iMineIncomePercentage = iniReader.ReadInteger("JA2 HAM Settings","MINE_INCOME_PERCENTAGE", 100, 1, 1000); // HEADROCK HAM B1: Set minimum and maximum CTH gGameExternalOptions.iMaximumCTH = iniReader.ReadInteger("JA2 HAM Settings","MAXIMUM_POSSIBLE_CTH",99);