summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-02-15 23:57:03 +0000
committerglx <glx@openttd.org>2008-02-15 23:57:03 +0000
commit3e70ee6ed7ea7bfb7b08ee70206a30651aec956b (patch)
tree846aa4f1b2b7c56288258e3f5e20efa172fe99a1 /src/station_cmd.cpp
parenta5f99154b755c85dabe8e2a8cc352b7d1a0fbb6c (diff)
downloadopenttd-3e70ee6ed7ea7bfb7b08ee70206a30651aec956b.tar.xz
(svn r12154) -Codechange: removed a magic number
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 47c41087d..77e3ad8f3 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -599,7 +599,7 @@ static void UpdateStationAcceptance(Station *st, bool show_msg)
TileXY(rect.min_x, rect.min_y),
rect.max_x - rect.min_x + 1,
rect.max_y - rect.min_y + 1,
- _patches.modified_catchment ? FindCatchmentRadius(st) : 4
+ _patches.modified_catchment ? FindCatchmentRadius(st) : CA_UNMODIFIED
);
} else {
memset(accepts, 0, sizeof(accepts));
@@ -2712,7 +2712,7 @@ StationSet FindStationsAroundIndustryTile(TileIndex tile, int w, int h)
h_prod = 0;
w += 8;
h += 8;
- max_rad = 4;
+ max_rad = CA_UNMODIFIED;
}
BEGIN_TILE_LOOP(cur_tile, w, h, tile - TileDiffXY(max_rad, max_rad))