author | KUDr |
Wed, 31 May 2006 06:51:56 +0000 | |
changeset 3923 | b84fdfe503b2 |
parent 3922 | 90fee3ce9b75 |
child 3924 | de86db4fbd1e |
--- 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);