From d81a7bf9042c9b4e835a8cca12018a972c12ff55 Mon Sep 17 00:00:00 2001 From: truelight Date: Fri, 14 Jul 2006 18:45:31 +0000 Subject: [PATCH] (svn r5498) -Fix: in r4677, Darkvater ported patch r4508 from trunk wrongly into the 0.4 branch. Because of that stations no longer delivered goods to industries if they were more then 2 tiles away, instead of the allowed station_spread * 2. --- economy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/economy.c b/economy.c index b45c5956be..3e193a3cf6 100644 --- a/economy.c +++ b/economy.c @@ -1148,7 +1148,7 @@ static void DeliverGoodsToIndustry(TileIndex xy, byte cargo_type, int num_pieces == ind->accepts_cargo[1] || cargo_type == ind->accepts_cargo[2]) && ind->produced_cargo[0] != CT_INVALID && ind->produced_cargo[0] != cargo_type && - (t = DistanceManhattan(ind->xy, xy)) < 2) { + (t = DistanceManhattan(ind->xy, xy)) < u) { u = t; best = ind; }