(svn r5057) -Fix: [YAPF] trains can't find depot for servicing (thanks Smoky555)
authorKUDr
Wed, 31 May 2006 06:51:56 +0000
changeset 3923 d5c7744483fc
parent 3922 5fe465866aa9
child 3924 d06b513d65c3
(svn r5057) -Fix: [YAPF] trains can't find depot for servicing (thanks Smoky555)
yapf/yapf_rail.cpp
--- a/yapf/yapf_rail.cpp	Wed May 31 06:43:05 2006 +0000
+++ b/yapf/yapf_rail.cpp	Wed May 31 06:51:56 2006 +0000
@@ -51,7 +51,7 @@
 		// set origin and destination nodes
 		Yapf().SetOrigin(t1, td1, t2, td2, reverse_penalty, true);
 		Yapf().SetDestination(v);
-		Yapf().SetMaxCost(10 * max_distance);
+		Yapf().SetMaxCost(YAPF_TILE_LENGTH * max_distance);
 
 		// find the best path
 		bool bFound = Yapf().FindPath(v);