summaryrefslogtreecommitdiff
path: root/src/dock_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-06 22:32:20 +0000
committerrubidium <rubidium@openttd.org>2008-04-06 22:32:20 +0000
commitbd432258cbbf29a2d37154914aa2361bdc218fbb (patch)
tree397ef733d88fb8d1a2ef21941b6a693ad03870e0 /src/dock_gui.cpp
parent949762fc65121d152d85f82902e2a67f95546db0 (diff)
downloadopenttd-bd432258cbbf29a2d37154914aa2361bdc218fbb.tar.xz
(svn r12596) -Feature: show what cargos a station could be supplied with. Patch by Roujin.
Diffstat (limited to 'src/dock_gui.cpp')
-rw-r--r--src/dock_gui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp
index 18e4a053f..32d7eb00e 100644
--- a/src/dock_gui.cpp
+++ b/src/dock_gui.cpp
@@ -254,8 +254,9 @@ static void BuildDockStationWndProc(Window *w, WindowEvent *e)
SetTileSelectSize(1, 1);
}
- int text_end = DrawStationCoverageAreaText(4, 50, SCT_ALL, rad) + 4;
- if (text_end > w->widget[2].bottom) {
+ int text_end = DrawStationCoverageAreaText(4, 50, SCT_ALL, rad, false);
+ text_end = DrawStationCoverageAreaText(4, text_end + 4, SCT_ALL, rad, true) + 4;
+ if (text_end != w->widget[2].bottom) {
SetWindowDirty(w);
ResizeWindowForWidget(w, 2, 0, text_end - w->widget[2].bottom);
SetWindowDirty(w);