Changeset - r8319:ed53804bb33f
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2008-01-16 23:46:46
peter1138@openttd.org
(svn r11884) -Cleanup: leftover use of widget numbers instead of enum
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/settings_gui.cpp
Show inline comments
 
@@ -163,14 +163,14 @@ static void GameOptionsWndProc(Window *w
 
{
 
	switch (e->event) {
 
		case WE_PAINT: {
 
			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);
 
			SetDParam(3, STR_02E9_DRIVE_ON_LEFT + _opt_ptr->road_side);
 
			SetDParam(4, TownName(_opt_ptr->town_name));
 
			SetDParam(5, _autosave_dropdown[_opt_ptr->autosave]);
0 comments (0 inline, 0 general)