src/pathfind.cpp
changeset 8236 8a5dd0b42e47
parent 8139 4e91c448c409
child 8270 e7c342f6b14c
equal deleted inserted replaced
8235:7987f051dd76 8236:8a5dd0b42e47
   440 	NTPEnumProc *enum_proc;
   440 	NTPEnumProc *enum_proc;
   441 	void *userdata;
   441 	void *userdata;
   442 	TileIndex dest;
   442 	TileIndex dest;
   443 
   443 
   444 	TransportType tracktype;
   444 	TransportType tracktype;
   445 	RailTypeMask railtypes;
   445 	RailTypes railtypes;
   446 	uint maxlength;
   446 	uint maxlength;
   447 
   447 
   448 	HashLink *new_link;
   448 	HashLink *new_link;
   449 	uint num_links_left;
   449 	uint num_links_left;
   450 
   450 
   936 	}
   936 	}
   937 }
   937 }
   938 
   938 
   939 
   939 
   940 /** new pathfinder for trains. better and faster. */
   940 /** new pathfinder for trains. better and faster. */
   941 void NewTrainPathfind(TileIndex tile, TileIndex dest, RailTypeMask railtypes, DiagDirection direction, NTPEnumProc* enum_proc, void* data)
   941 void NewTrainPathfind(TileIndex tile, TileIndex dest, RailTypes railtypes, DiagDirection direction, NTPEnumProc* enum_proc, void* data)
   942 {
   942 {
   943 	NewTrackPathFinder tpf;
   943 	NewTrackPathFinder tpf;
   944 
   944 
   945 	tpf.dest = dest;
   945 	tpf.dest = dest;
   946 	tpf.userdata = data;
   946 	tpf.userdata = data;