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
commita1489850876a28c273e1e633515c11062c832df2 (patch)
tree846aa4f1b2b7c56288258e3f5e20efa172fe99a1 /src/station_cmd.cpp
parent55b0146498ba3789406aa7bf08426a9b1e2eea2d (diff)
downloadopenttd-a1489850876a28c273e1e633515c11062c832df2.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))