Changeset - r4271:66b37ab6f13c
[Not reviewed]
master
0 1 0
Darkvater - 18 years ago 2006-08-14 23:11:59
darkvater@openttd.org
(svn r5899) - Fix [FS#242]: Multistop not working when using NPF (r5033) (mart3p)
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
roadveh_cmd.c
Show inline comments
 
@@ -1170,7 +1170,7 @@ found_best_track:;
 

	
 
static uint RoadFindPathToStop(const Vehicle *v, TileIndex tile)
 
{
 
	uint dist = UINT_MAX;
 
	uint dist;
 
	if (_patches.yapf.road_use_yapf) {
 
		// use YAPF
 
		dist = YapfRoadVehDistanceToTile(v, tile);
 
@@ -1178,7 +1178,6 @@ static uint RoadFindPathToStop(const Veh
 
		// use NPF
 
		NPFFindStationOrTileData fstd;
 
		byte trackdir = GetVehicleTrackdir(v);
 
		uint dist = UINT_MAX;
 
		assert(trackdir != 0xFF);
 

	
 
		fstd.dest_coords = tile;
0 comments (0 inline, 0 general)