summaryrefslogtreecommitdiff
path: root/src/road_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-04 11:11:11 +0000
committerrubidium <rubidium@openttd.org>2009-01-04 11:11:11 +0000
commita41e60d255580ba33c07121be3d476bedaca3e62 (patch)
tree48ba8ed831ef96ae5bf0e9c51bf25ad1f3929249 /src/road_gui.cpp
parentd44ba26cd7d02ff9cdf883f9d3f30fe19e5a2285 (diff)
downloadopenttd-a41e60d255580ba33c07121be3d476bedaca3e62.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/road_gui.cpp')
-rw-r--r--src/road_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 938adc10f..7d3f79825 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -831,7 +831,7 @@ public:
for (uint i = BRSW_STATION_NE; i < BRSW_LT_OFF; i++) this->widget[i].tooltips = _road_type_infos[_cur_roadtype].picker_tooltip[rs];
this->LowerWidget(_road_station_picker_orientation + BRSW_STATION_NE);
- this->LowerWidget(_station_show_coverage + BRSW_LT_OFF);
+ this->LowerWidget(_settings_client.gui.station_show_coverage + BRSW_LT_OFF);
this->FindWindowPlacementAndResize(desc);
}
@@ -839,7 +839,7 @@ public:
{
this->DrawWidgets();
- if (_station_show_coverage) {
+ if (_settings_client.gui.station_show_coverage) {
int rad = _settings_game.station.modified_catchment ? CA_TRUCK /* = CA_BUS */ : CA_UNMODIFIED;
SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
} else {
@@ -887,9 +887,9 @@ public:
case BRSW_LT_OFF:
case BRSW_LT_ON:
- this->RaiseWidget(_station_show_coverage + BRSW_LT_OFF);
- _station_show_coverage = (widget != BRSW_LT_OFF);
- this->LowerWidget(_station_show_coverage + BRSW_LT_OFF);
+ this->RaiseWidget(_settings_client.gui.station_show_coverage + BRSW_LT_OFF);
+ _settings_client.gui.station_show_coverage = (widget != BRSW_LT_OFF);
+ this->LowerWidget(_settings_client.gui.station_show_coverage + BRSW_LT_OFF);
SndPlayFx(SND_15_BEEP);
this->SetDirty();
break;