mirror of https://github.com/OpenTTD/OpenTTD
removed "newvalue" in post_cb, and added "_settings_game" to define where difficulty is from
(also corrected misspeslling "difficulity" to "difficulty")pull/12974/head
parent
80f46d141d
commit
9cdd217e53
|
@ -114,7 +114,7 @@ def = 100
|
|||
min = 10
|
||||
max = 6000000
|
||||
pre_cb = [](auto &new_value) { new_value = (new_value + 10 / 2) / 10 * 10; return true; }
|
||||
post_cb = [](auto &new_value) { difficulity.max_loan = ((new_value/100)* 300000) * GetCurrency().rate; return true;}
|
||||
post_cb = [](auto) { _settings_game.difficulty.max_loan = ((_settings_game.difficulty.max_loan_percentage/100)* 300000) * GetCurrency().rate;}
|
||||
interval = 10
|
||||
str = STR_CONFIG_SETTING_MAXIMUM_INITIAL_LOAN
|
||||
strhelp = STR_CONFIG_SETTING_MAXIMUM_INITIAL_LOAN_HELPTEXT
|
||||
|
|
Loading…
Reference in New Issue