summaryrefslogtreecommitdiff
path: root/yapf
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2006-05-31 06:51:56 +0000
committerKUDr <kudr@openttd.org>2006-05-31 06:51:56 +0000
commitef211c35cea51761555ea060bd65009469a1c19d (patch)
tree497738c4dffffde911594da7153d732969b6613c /yapf
parentc1983c3d021a96d586f035ab24e8be80978b7901 (diff)
downloadopenttd-ef211c35cea51761555ea060bd65009469a1c19d.tar.xz
(svn r5057) -Fix: [YAPF] trains can't find depot for servicing (thanks Smoky555)
Diffstat (limited to 'yapf')
-rw-r--r--yapf/yapf_rail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/yapf/yapf_rail.cpp b/yapf/yapf_rail.cpp
index 7f0b11e27..72cfe3fad 100644
--- a/yapf/yapf_rail.cpp
+++ b/yapf/yapf_rail.cpp
@@ -51,7 +51,7 @@ public:
// 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);