diff options
author | rubidium <rubidium@openttd.org> | 2010-12-13 21:56:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-13 21:56:25 +0000 |
commit | 6bc002ad7414fb7d27e9ace04865d501cc3b08b9 (patch) | |
tree | 14c0e17256d3047f9bcd9746746afe1b27b94a31 /src/pathfinder/npf/npf_func.h | |
parent | b05d2675fcb9d95ddf91b96c45985d03ce3cbd71 (diff) | |
download | openttd-6bc002ad7414fb7d27e9ace04865d501cc3b08b9.tar.xz |
(svn r21510) -Feature [FS#1956]: vehicle lost message for road vehicles
Diffstat (limited to 'src/pathfinder/npf/npf_func.h')
-rw-r--r-- | src/pathfinder/npf/npf_func.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pathfinder/npf/npf_func.h b/src/pathfinder/npf/npf_func.h index 3f9ce4280..bdfee0cd7 100644 --- a/src/pathfinder/npf/npf_func.h +++ b/src/pathfinder/npf/npf_func.h @@ -33,9 +33,10 @@ FindDepotData NPFRoadVehicleFindNearestDepot(const RoadVehicle *v, int max_penal * @param tile the tile to find the path from (should be next tile the RV is about to enter) * @param enterdir diagonal direction which the RV will enter this new tile from * @param trackdirs available trackdirs on the new tile (to choose from) + * @param path_found [out] Whether a path has been found (true) or has been guessed (false) * @return the best trackdir for next turn or INVALID_TRACKDIR if the path could not be found */ -Trackdir NPFRoadVehicleChooseTrack(const RoadVehicle *v, TileIndex tile, DiagDirection enterdir, TrackdirBits trackdirs); +Trackdir NPFRoadVehicleChooseTrack(const RoadVehicle *v, TileIndex tile, DiagDirection enterdir, TrackdirBits trackdirs, bool &path_found); /** * Finds the best path for given ship using NPF. |