diff options
author | rubidium <rubidium@openttd.org> | 2009-02-08 17:46:08 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-08 17:46:08 +0000 |
commit | fc342a0d68eea28f4aacee877dedef36f7b3b354 (patch) | |
tree | a39191fa78a7ffc1e02a55a866ac339990658e7c /src/settings_gui.cpp | |
parent | d88f2a0120e38bb073a990ed4ae03ffb9e6058ea (diff) | |
download | openttd-fc342a0d68eea28f4aacee877dedef36f7b3b354.tar.xz |
(svn r15416) -Fix (r15412): revert the removal of the road side drop down box handling.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 5df74302d..e9d43f1dd 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -266,6 +266,15 @@ struct GameOptionsWindow : Window { 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; |