File diff r9353:bc33456736f9 → r9354:358e967da2ca
src/pathfind.cpp
Show inline comments
 
@@ -775,13 +775,13 @@ void NewTrainPathfind(TileIndex tile, Ti
 

	
 
	tpf->dest = dest;
 
	tpf->userdata = data;
 
	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);
 
	memset(tpf->hash_head, 0, sizeof(tpf->hash_head));
 

	
 
	NTPEnum(tpf, tile, direction);