(svn r3750) Use INVALID_STATION instead of -1 in NPF

This commit is contained in:
tron
2006-03-03 20:54:54 +00:00
parent 4ebaa55fe1
commit 08720b6fd7
3 changed files with 7 additions and 6 deletions

View File

@@ -1111,7 +1111,7 @@ static uint RoadFindPathToStop(const Vehicle *v, TileIndex tile)
assert(trackdir != 0xFF);
fstd.dest_coords = tile;
fstd.station_index = -1; // indicates that the destination is a tile, not a station
fstd.station_index = INVALID_STAION; // indicates that the destination is a tile, not a station
return NPFRouteToStationOrTile(v->tile, trackdir, &fstd, TRANSPORT_ROAD, v->owner, INVALID_RAILTYPE).best_path_dist;
}