(svn r5899) - Fix [FS#242]: Multistop not working when using NPF (r5033) (mart3p)

This commit is contained in:
Darkvater 2006-08-14 23:11:59 +00:00
parent a35511dc9b
commit ba2a796403
1 changed files with 1 additions and 2 deletions

View File

@ -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 Vehicle *v, TileIndex tile)
// use NPF
NPFFindStationOrTileData fstd;
byte trackdir = GetVehicleTrackdir(v);
uint dist = UINT_MAX;
assert(trackdir != 0xFF);
fstd.dest_coords = tile;