changeset 9354 | 845e07db4549 |
parent 9111 | 48ce04029fe4 |
child 9413 | 7042a8ec3fa8 |
--- a/src/pathfind.cpp Sun May 25 17:36:49 2008 +0000 +++ b/src/pathfind.cpp Sun May 25 19:17:03 2008 +0000 @@ -778,7 +778,7 @@ tpf->enum_proc = enum_proc; tpf->tracktype = TRANSPORT_RAIL; tpf->railtypes = railtypes; - tpf->maxlength = min(_patches.pf_maxlength * 3, 10000); + tpf->maxlength = min(_settings.pf.opf.pf_maxlength * 3, 10000); tpf->nstack = 0; tpf->new_link = tpf->links; tpf->num_links_left = lengthof(tpf->links);