diff options
author | Celestar <celestar@openttd.org> | 2004-12-08 15:46:13 +0000 |
---|---|---|
committer | Celestar <celestar@openttd.org> | 2004-12-08 15:46:13 +0000 |
commit | 5b0743d66bf73a1bbfdd95beca039283091d8d46 (patch) | |
tree | aa862fd953b81bbc7c142d763f82868807933f7e /misc_gui.c | |
parent | 6fd3fc10e347695b28c8b3d1e0074b5456cd8100 (diff) | |
download | openttd-5b0743d66bf73a1bbfdd95beca039283091d8d46.tar.xz |
(svn r979) Allow more realistically sized catchment areas
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_gui.c b/misc_gui.c index 64cebe85c..cb21f33c9 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -640,12 +640,12 @@ static void DrawStationCoverageText(const uint *accepts, int str_x, int str_y, u DrawStringMultiLine(str_x, str_y, STR_SPEC_USERSTRING, 144); } -void DrawStationCoverageAreaText(int sx, int sy, uint mask) { +void DrawStationCoverageAreaText(int sx, int sy, uint mask, int rad) { int x = _thd.pos.x; 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); + GetAcceptanceAroundTiles(accepts, TILE_FROM_XY(x,y), _thd.new_size.x >> 4, _thd.new_size.y >> 4, rad); DrawStationCoverageText(accepts, sx, sy, mask); } } |