Mercurial > hg > openttd
changeset 11075:adc269893bd0 draft
(svn r15416) -Fix (r15412): revert the removal of the road side drop down box handling.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 08 Feb 2009 17:46:08 +0000 |
parents | b1484309e4ec |
children | 3ce92d721ce1 |
files | src/settings_gui.cpp |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -266,6 +266,15 @@ 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;