summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);