src/pathfind.cpp
branchnoai
changeset 10715 6bdf79ffb022
parent 10455 22c441f5adf9
child 10776 07203fc29812
equal deleted inserted replaced
10713:c5c9dc32c052 10715:6bdf79ffb022
   776 	tpf->dest = dest;
   776 	tpf->dest = dest;
   777 	tpf->userdata = data;
   777 	tpf->userdata = data;
   778 	tpf->enum_proc = enum_proc;
   778 	tpf->enum_proc = enum_proc;
   779 	tpf->tracktype = TRANSPORT_RAIL;
   779 	tpf->tracktype = TRANSPORT_RAIL;
   780 	tpf->railtypes = railtypes;
   780 	tpf->railtypes = railtypes;
   781 	tpf->maxlength = min(_patches.pf_maxlength * 3, 10000);
   781 	tpf->maxlength = min(_settings.pf.opf.pf_maxlength * 3, 10000);
   782 	tpf->nstack = 0;
   782 	tpf->nstack = 0;
   783 	tpf->new_link = tpf->links;
   783 	tpf->new_link = tpf->links;
   784 	tpf->num_links_left = lengthof(tpf->links);
   784 	tpf->num_links_left = lengthof(tpf->links);
   785 	memset(tpf->hash_head, 0, sizeof(tpf->hash_head));
   785 	memset(tpf->hash_head, 0, sizeof(tpf->hash_head));
   786 
   786