From 5b0743d66bf73a1bbfdd95beca039283091d8d46 Mon Sep 17 00:00:00 2001 From: Celestar Date: Wed, 8 Dec 2004 15:46:13 +0000 Subject: (svn r979) Allow more realistically sized catchment areas --- rail_gui.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'rail_gui.c') diff --git a/rail_gui.c b/rail_gui.c index 7fdde306a..28f12caac 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -849,6 +849,7 @@ static void HandleStationPlacement(uint start, uint end) } static void StationBuildWndProc(Window *w, WindowEvent *e) { + int rad; switch(e->event) { case WE_PAINT: { uint bits; @@ -876,8 +877,15 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) { SetTileSelectSize(x, y); } + if (_patches.modified_catchment) { + rad = CA_TRAIN; + } else { + rad = 4; + } + + if (_station_show_coverage) - SetTileSelectBigSize(-4, -4, 8, 8); + SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); DrawWindowWidgets(w); @@ -889,7 +897,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) { DrawStringCentered(74, 101, STR_3004_PLATFORM_LENGTH, 0); DrawStringCentered(74, 141, STR_3066_COVERAGE_AREA_HIGHLIGHT, 0); - DrawStationCoverageAreaText(2, 166, (uint)-1); + DrawStationCoverageAreaText(2, 166, (uint)-1, rad); } break; case WE_CLICK: { -- cgit v1.2.3-54-g00ecf