summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-07-10 21:59:07 +0000
committeryexo <yexo@openttd.org>2009-07-10 21:59:07 +0000
commit58ee544cff63e5e1d684074d20e6476b72acf5c1 (patch)
tree933aa58252b32a8dbf26f372b76d0dae8e9d41f6 /src
parent024a2eeed5e1ae68231862c6cb2f456cc6ee79a6 (diff)
downloadopenttd-58ee544cff63e5e1d684074d20e6476b72acf5c1.tar.xz
(svn r16788) -Fix: with modified_catchment off the build road station window would not display all possible cargos in the Accepts/Supplies lists
Diffstat (limited to 'src')
-rw-r--r--src/road_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index b0d28e135..302da2086 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -938,8 +938,8 @@ struct BuildRoadStationWindow : public PickerWindowBase {
{
this->DrawWidgets();
+ int rad = _settings_game.station.modified_catchment ? CA_TRUCK /* = CA_BUS */ : CA_UNMODIFIED;
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 {
SetTileSelectSize(1, 1);
@@ -957,10 +957,10 @@ struct BuildRoadStationWindow : public PickerWindowBase {
int text_end = DrawStationCoverageAreaText(2, 147,
(this->window_class == WC_BUS_STATION) ? SCT_PASSENGERS_ONLY : SCT_NON_PASSENGERS_ONLY,
- 3, false);
+ rad, false);
text_end = DrawStationCoverageAreaText(2, text_end + 4,
(this->window_class == WC_BUS_STATION) ? SCT_PASSENGERS_ONLY : SCT_NON_PASSENGERS_ONLY,
- 3, true) + 4;
+ rad, true) + 4;
if (text_end > this->widget[BRSW_BACKGROUND].bottom) {
this->SetDirty();
ResizeWindowForWidget(this, BRSW_BACKGROUND, 0, text_end - this->widget[BRSW_BACKGROUND].bottom);