From 816f629f13217fbcb6d57ca151f6727ccd7b1b03 Mon Sep 17 00:00:00 2001 From: celestar Date: Sun, 3 Apr 2005 06:26:31 +0000 Subject: [PATCH] (svn r2138) -Fix: [ 1144154 ] The map has two dimensions, not one --- economy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/economy.c b/economy.c index 486b8ea788..4e62063171 100644 --- a/economy.c +++ b/economy.c @@ -1132,7 +1132,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] != 0xFF && ind->produced_cargo[0] != cargo_type && - (t = DistanceManhattan(ind->xy, xy)) < u) { + (t = DistanceManhattan(ind->xy, xy)) < 2 * u) { u = t; best = ind; }