Mercurial > hg > openttd
changeset 4271:6dd1ca384ea6 draft
(svn r5899) - Fix [FS#242]: Multistop not working when using NPF (r5033) (mart3p)
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Mon, 14 Aug 2006 23:11:59 +0000 |
parents | e6de1eec8332 |
children | 9ac310afc549 |
files | roadveh_cmd.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -1170,7 +1170,7 @@ 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 @@ // use NPF NPFFindStationOrTileData fstd; byte trackdir = GetVehicleTrackdir(v); - uint dist = UINT_MAX; assert(trackdir != 0xFF); fstd.dest_coords = tile;