diff options
author | rubidium <rubidium@openttd.org> | 2008-04-06 22:32:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-06 22:32:20 +0000 |
commit | 1bd5a29df5db4d1b6d3925f7f291bfae7688a6cd (patch) | |
tree | 397ef733d88fb8d1a2ef21941b6a693ad03870e0 /src/rail_gui.cpp | |
parent | d90a0412301c7f2288914f13086e19283d5c039c (diff) | |
download | openttd-1bd5a29df5db4d1b6d3925f7f291bfae7688a6cd.tar.xz |
(svn r12596) -Feature: show what cargos a station could be supplied with. Patch by Roujin.
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r-- | src/rail_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index f69ada958..fdfdf3364 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -936,8 +936,9 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) DrawStringCentered(74, 101 + y_offset, STR_3004_PLATFORM_LENGTH, TC_FROMSTRING); DrawStringCentered(74, 141 + y_offset, STR_3066_COVERAGE_AREA_HIGHLIGHT, TC_FROMSTRING); - int text_end = DrawStationCoverageAreaText(2, 166 + y_offset, SCT_ALL, rad) + 4; - if (text_end > w->widget[BRSW_BACKGROUND].bottom) { + int text_end = DrawStationCoverageAreaText(2, 166 + y_offset, SCT_ALL, rad, false); + text_end = DrawStationCoverageAreaText(2, text_end + 4, SCT_ALL, rad, true) + 4; + if (text_end != w->widget[BRSW_BACKGROUND].bottom) { SetWindowDirty(w); ResizeWindowForWidget(w, BRSW_BACKGROUND, 0, text_end - w->widget[BRSW_BACKGROUND].bottom); SetWindowDirty(w); |