diff options
-rw-r--r-- | misc_gui.c | 2 | ||||
-rw-r--r-- | rail_gui.c | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/misc_gui.c b/misc_gui.c index ff0197c59..28bb9ad16 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -712,7 +712,7 @@ void DrawStationCoverageAreaText(int sx, int sy, uint mask, int rad) { int y = _thd.pos.y; uint accepts[NUM_CARGO]; if (x != -1) { - GetAcceptanceAroundTiles(accepts, TILE_FROM_XY(x,y), _thd.new_size.x >> 4, _thd.new_size.y >> 4, rad); + GetAcceptanceAroundTiles(accepts, TILE_FROM_XY(x, y), _thd.size.x /16, _thd.size.y /16 , rad); DrawStationCoverageText(accepts, sx, sy, mask); } } diff --git a/rail_gui.c b/rail_gui.c index 34900d604..63fccd86d 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -868,12 +868,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) { SetTileSelectSize(x, y); } - if (_patches.modified_catchment) { - rad = CA_TRAIN; - } else { - rad = 4; - } - + rad = (_patches.modified_catchment) ? CA_TRAIN : 4; if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); |