diff options
author | KUDr <kudr@openttd.org> | 2006-05-31 06:51:56 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2006-05-31 06:51:56 +0000 |
commit | ef211c35cea51761555ea060bd65009469a1c19d (patch) | |
tree | 497738c4dffffde911594da7153d732969b6613c /yapf | |
parent | c1983c3d021a96d586f035ab24e8be80978b7901 (diff) | |
download | openttd-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.cpp | 2 |
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); |