mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-06 22:37:22 +00:00
(svn r11884) -Cleanup: leftover use of widget numbers instead of enum
This commit is contained in:
parent
c8178d43c1
commit
bc438a3033
@ -166,8 +166,8 @@ static void GameOptionsWndProc(Window *w, WindowEvent *e)
|
|||||||
int i;
|
int i;
|
||||||
StringID str = STR_02BE_DEFAULT;
|
StringID str = STR_02BE_DEFAULT;
|
||||||
|
|
||||||
w->SetWidgetDisabledState(21, !(_vehicle_design_names & 1));
|
w->SetWidgetDisabledState(GAMEOPT_VEHICLENAME_SAVE, !(_vehicle_design_names & 1));
|
||||||
if (!w->IsWidgetDisabled(21)) str = STR_02BF_CUSTOM;
|
if (!w->IsWidgetDisabled(GAMEOPT_VEHICLENAME_SAVE)) str = STR_02BF_CUSTOM;
|
||||||
SetDParam(0, str);
|
SetDParam(0, str);
|
||||||
SetDParam(1, _currency_specs[_opt_ptr->currency].name);
|
SetDParam(1, _currency_specs[_opt_ptr->currency].name);
|
||||||
SetDParam(2, STR_UNITS_IMPERIAL + _opt_ptr->units);
|
SetDParam(2, STR_UNITS_IMPERIAL + _opt_ptr->units);
|
||||||
|
Loading…
Reference in New Issue
Block a user