mirror of https://github.com/OpenTTD/OpenTTD
(svn r2138) -Fix: [ 1144154 ] The map has two dimensions, not one
parent
64533d53dc
commit
5d937e4a23
|
@ -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->accepts_cargo[1] || cargo_type == ind->accepts_cargo[2]) &&
|
||||||
ind->produced_cargo[0] != 0xFF &&
|
ind->produced_cargo[0] != 0xFF &&
|
||||||
ind->produced_cargo[0] != cargo_type &&
|
ind->produced_cargo[0] != cargo_type &&
|
||||||
(t = DistanceManhattan(ind->xy, xy)) < u) {
|
(t = DistanceManhattan(ind->xy, xy)) < 2 * u) {
|
||||||
u = t;
|
u = t;
|
||||||
best = ind;
|
best = ind;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue