diff options
author | rubidium <rubidium@openttd.org> | 2009-01-04 11:11:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-04 11:11:11 +0000 |
commit | 2a47aaf4a8d2dbee8c7c194c33035028583a2c5d (patch) | |
tree | 48ba8ed831ef96ae5bf0e9c51bf25ad1f3929249 /src/airport_gui.cpp | |
parent | e15231c4a455d0a0d0326375f659bdba67d6b33f (diff) | |
download | openttd-2a47aaf4a8d2dbee8c7c194c33035028583a2c5d.tar.xz |
(svn r14822) -Change: save 'build station' settings in the config file, like drag'n'drop and and show coverage area (Rexxars)
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r-- | src/airport_gui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index 39e600402..b55a86b67 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -175,8 +175,8 @@ public: AirportPickerWindow(const WindowDesc *desc, Window *parent) : PickerWindowBase(desc, parent) { - this->SetWidgetLoweredState(BAW_BTN_DONTHILIGHT, !_station_show_coverage); - this->SetWidgetLoweredState(BAW_BTN_DOHILIGHT, _station_show_coverage); + this->SetWidgetLoweredState(BAW_BTN_DONTHILIGHT, !_settings_client.gui.station_show_coverage); + this->SetWidgetLoweredState(BAW_BTN_DOHILIGHT, _settings_client.gui.station_show_coverage); this->LowerWidget(_selected_airport_type + BAW_SMALL_AIRPORT); if (_settings_game.economy.station_noise_level) { @@ -214,7 +214,7 @@ public: int rad = _settings_game.station.modified_catchment ? airport->catchment : (uint)CA_UNMODIFIED; - if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); + if (_settings_client.gui.station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); this->DrawWidgets(); @@ -250,9 +250,9 @@ public: break; case BAW_BTN_DONTHILIGHT: case BAW_BTN_DOHILIGHT: - _station_show_coverage = (widget != BAW_BTN_DONTHILIGHT); - this->SetWidgetLoweredState(BAW_BTN_DONTHILIGHT, !_station_show_coverage); - this->SetWidgetLoweredState(BAW_BTN_DOHILIGHT, _station_show_coverage); + _settings_client.gui.station_show_coverage = (widget != BAW_BTN_DONTHILIGHT); + this->SetWidgetLoweredState(BAW_BTN_DONTHILIGHT, !_settings_client.gui.station_show_coverage); + this->SetWidgetLoweredState(BAW_BTN_DOHILIGHT, _settings_client.gui.station_show_coverage); SndPlayFx(SND_15_BEEP); this->SetDirty(); break; |