(svn r12154) -Codechange: removed a magic number

This commit is contained in:
glx
2008-02-15 23:57:03 +00:00
parent a5f99154b7
commit 3e70ee6ed7
7 changed files with 10 additions and 8 deletions

View File

@@ -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))