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
commitc514f84a16b1c2ec3c5838f8833fd732e38d825b (patch)
tree497738c4dffffde911594da7153d732969b6613c /yapf
parentf227b9b77cecb71e87f0894468f3d328d86c8fdc (diff)
downloadopenttd-c514f84a16b1c2ec3c5838f8833fd732e38d825b.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);