Changeset - r11075:cf03205d9990
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2009-02-08 17:46:08
rubidium@openttd.org
(svn r15416) -Fix (r15412): revert the removal of the road side drop down box handling.
1 file changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/settings_gui.cpp
Show inline comments
 
@@ -263,12 +263,21 @@ struct GameOptionsWindow : Window {
 

	
 
			case GAMEOPT_DISTANCE_BTN: // Measuring units
 
				this->opt->locale.units = index;
 
				MarkWholeScreenDirty();
 
				break;
 

	
 
			case GAMEOPT_ROADSIDE_BTN: // Road side
 
				if (this->opt->vehicle.road_side != index) { // only change if setting changed
 
					uint i;
 
					if (GetSettingFromName("vehicle.road_side", &i) == NULL) NOT_REACHED();
 
					SetSettingValue(i, index);
 
					MarkWholeScreenDirty();
 
				}
 
				break;
 

	
 
			case GAMEOPT_TOWNNAME_BTN: // Town names
 
				if (_game_mode == GM_MENU || GetNumTowns() == 0) {
 
					this->opt->game_creation.town_name = index;
 
					InvalidateWindow(WC_GAME_OPTIONS, 0);
 
				}
 
				break;
0 comments (0 inline, 0 general)