diff options
author | celestar <celestar@openttd.org> | 2005-04-03 06:26:31 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-04-03 06:26:31 +0000 |
commit | 5d937e4a233757a49fc901f99be68b5f6a94e543 (patch) | |
tree | ad3be8c10d2613e499f8904165c4e9d645ecf092 | |
parent | 64533d53dc355985e0f5bb67f720190fa4082abb (diff) | |
download | openttd-5d937e4a233757a49fc901f99be68b5f6a94e543.tar.xz |
(svn r2138) -Fix: [ 1144154 ] The map has two dimensions, not one
-rw-r--r-- | economy.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |