diff options
author | glx <glx@openttd.org> | 2008-02-15 23:57:03 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-02-15 23:57:03 +0000 |
commit | 3e70ee6ed7ea7bfb7b08ee70206a30651aec956b (patch) | |
tree | 846aa4f1b2b7c56288258e3f5e20efa172fe99a1 /src/ai | |
parent | a5f99154b755c85dabe8e2a8cc352b7d1a0fbb6c (diff) | |
download | openttd-3e70ee6ed7ea7bfb7b08ee70206a30651aec956b.tar.xz |
(svn r12154) -Codechange: removed a magic number
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/default/default.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index 077e2a849..949f29702 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -1604,7 +1604,7 @@ static void AiStateWantNewRoute(Player *p) static bool AiCheckTrackResources(TileIndex tile, const AiDefaultBlockData *p, byte cargo) { - uint rad = (_patches.modified_catchment) ? CA_TRAIN : 4; + uint rad = (_patches.modified_catchment) ? CA_TRAIN : CA_UNMODIFIED; for (; p->mode != 4; p++) { AcceptedCargo values; @@ -3409,7 +3409,7 @@ static bool AiCheckAirportResources(TileIndex tile, const AiDefaultBlockData *p, const AirportFTAClass* airport = GetAirport(p->attr); uint w = airport->size_x; uint h = airport->size_y; - uint rad = _patches.modified_catchment ? airport->catchment : 4; + uint rad = _patches.modified_catchment ? airport->catchment : CA_UNMODIFIED; if (cargo & 0x80) { GetProductionAroundTiles(values, tile2, w, h, rad); |