summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-08-12 22:29:37 +0000
committerdarkvater <darkvater@openttd.org>2004-08-12 22:29:37 +0000
commit5a0a007e45851a33bb84ca52764c1d481203e37c (patch)
tree86126c764c7563b5ee5ac135e019cc6a31a1649d
parentb70e5a30c14f7d540bb1c5982c27b8ccbf22d909 (diff)
downloadopenttd-5a0a007e45851a33bb84ca52764c1d481203e37c.tar.xz
(svn r34) -Fix [990770] Cargo delivery area patch for bug #989322. If station sign was too far away, there were goods acceptance/delivery issues (Celstar)
-rw-r--r--economy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/economy.c b/economy.c
index e7d7d096e..ffc4a02d5 100644
--- a/economy.c
+++ b/economy.c
@@ -992,7 +992,7 @@ static void DeliverGoodsToIndustry(TileIndex xy, byte cargo_type, int num_pieces
/* Check if there's an industry close to the station that accepts
* the cargo */
best = NULL;
- u = 0x11;
+ u = _patches.station_spread + 8;
for(ind = _industries; ind != endof(_industries); ind++) {
if (ind->xy != 0 && (cargo_type == ind->accepts_cargo[0] || cargo_type
== ind->accepts_cargo[1] || cargo_type == ind->accepts_cargo[2]) &&