(svn r12596) -Feature: show what cargos a station could be supplied with. Patch by Roujin.

This commit is contained in:
rubidium
2008-04-06 22:32:20 +00:00
parent 949762fc65
commit bd432258cb
9 changed files with 68 additions and 20 deletions

View File

@@ -882,7 +882,10 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e)
int text_end = DrawStationCoverageAreaText(2, 146,
(w->window_class == WC_BUS_STATION) ? SCT_PASSENGERS_ONLY : SCT_NON_PASSENGERS_ONLY,
3) + 4;
3, false);
text_end = DrawStationCoverageAreaText(2, text_end + 4,
(w->window_class == WC_BUS_STATION) ? SCT_PASSENGERS_ONLY : SCT_NON_PASSENGERS_ONLY,
3, true) + 4;
if (text_end > w->widget[BRSW_BACKGROUND].bottom) {
SetWindowDirty(w);
ResizeWindowForWidget(w, BRSW_BACKGROUND, 0, text_end - w->widget[BRSW_BACKGROUND].bottom);