Mercurial > hg > openttd
changeset 8319:b2743d3ccecb draft
(svn r11884) -Cleanup: leftover use of widget numbers instead of enum
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Wed, 16 Jan 2008 23:46:46 +0000 |
parents | e2e3a8e85bdb |
children | 06495654aee6 |
files | src/settings_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -166,8 +166,8 @@ int i; StringID str = STR_02BE_DEFAULT; - w->SetWidgetDisabledState(21, !(_vehicle_design_names & 1)); - if (!w->IsWidgetDisabled(21)) str = STR_02BF_CUSTOM; + w->SetWidgetDisabledState(GAMEOPT_VEHICLENAME_SAVE, !(_vehicle_design_names & 1)); + if (!w->IsWidgetDisabled(GAMEOPT_VEHICLENAME_SAVE)) str = STR_02BF_CUSTOM; SetDParam(0, str); SetDParam(1, _currency_specs[_opt_ptr->currency].name); SetDParam(2, STR_UNITS_IMPERIAL + _opt_ptr->units);