(svn r2138) -Fix: [ 1144154 ] The map has two dimensions, not one
authorcelestar
Sun, 03 Apr 2005 06:26:31 +0000
changeset 1634 473f8efef832
parent 1633 fe672efa989f
child 1635 6a5b991bdd49
(svn r2138) -Fix: [ 1144154 ] The map has two dimensions, not one
economy.c
--- a/economy.c	Sat Apr 02 23:06:54 2005 +0000
+++ b/economy.c	Sun Apr 03 06:26:31 2005 +0000
@@ -1132,7 +1132,7 @@
 				 == 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;
 		}