summaryrefslogtreecommitdiff
path: root/ai_new.c
diff options
context:
space:
mode:
authorCelestar <Celestar@openttd.org>2004-12-08 15:46:13 +0000
committerCelestar <Celestar@openttd.org>2004-12-08 15:46:13 +0000
commit945ceb06fc166379a9d0ffa4dfafe68894cba9e6 (patch)
treeaa862fd953b81bbc7c142d763f82868807933f7e /ai_new.c
parent932610e61256af745c96f7fa1808a459d3e627fb (diff)
downloadopenttd-945ceb06fc166379a9d0ffa4dfafe68894cba9e6.tar.xz
(svn r979) Allow more realistically sized catchment areas
Diffstat (limited to 'ai_new.c')
-rw-r--r--ai_new.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ai_new.c b/ai_new.c
index 79c503b71..ba335196a 100644
--- a/ai_new.c
+++ b/ai_new.c
@@ -611,7 +611,8 @@ static void AiNew_State_FindStation(Player *p) {
if (IS_TILETYPE(new_tile, MP_CLEAR) || IS_TILETYPE(new_tile, MP_TREES)) {
// This tile we can build on!
// Check acceptance
- GetAcceptanceAroundTiles(accepts, new_tile, 1, 1);
+ // XXX - Get the catchment area
+ GetAcceptanceAroundTiles(accepts, new_tile, 1, 1, 4);
// >> 3 == 0 means no cargo
if (accepts[p->ainew.cargo] >> 3 == 0) continue;
// See if we can build the station