diff options
author | KUDr <kudr@openttd.org> | 2006-10-17 16:16:19 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2006-10-17 16:16:19 +0000 |
commit | c758f7d812af5b3421938ad0c11ff865d0f5f04b (patch) | |
tree | 70880ca0146adbd4518bce82cbad4db6e7dd3b36 /yapf/yapf.h | |
parent | da639420411af786afb8935b3ffa8ae5b7a2bf02 (diff) | |
download | openttd-c758f7d812af5b3421938ad0c11ff865d0f5f04b.tar.xz |
(svn r6800) -Feature change: [train is lost] message is now generated immediately when pathfinder can't find the path. (thanks MeusH, peter1138 and Brianetta for ideas and help).
Diffstat (limited to 'yapf/yapf.h')
-rw-r--r-- | yapf/yapf.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yapf/yapf.h b/yapf/yapf.h index 55b9f73ca..3bf8468e9 100644 --- a/yapf/yapf.h +++ b/yapf/yapf.h @@ -27,10 +27,11 @@ Trackdir YapfChooseRoadTrack(Vehicle *v, TileIndex tile, DiagDirection enterdir) * @param v the train that needs to find a path * @param tile the tile to find the path from (should be next tile the train is about to enter) * @param enterdir diagonal direction which the RV will enter this new tile from - * @param tracks available tracks on the new tile (to choose from) + * @param trackdirs available trackdirs on the new tile (to choose from) + * @param no_path_found [out] true is returned if no path can be found (returned Trackdir is only a 'guess') * @return the best trackdir for next turn or INVALID_TRACKDIR if the path could not be found */ -Trackdir YapfChooseRailTrack(Vehicle *v, TileIndex tile, DiagDirection enterdir, TrackdirBits trackdirs); +Trackdir YapfChooseRailTrack(Vehicle *v, TileIndex tile, DiagDirection enterdir, TrackdirBits trackdirs, bool *path_not_found); /** Used by RV multistop feature to find the nearest road stop that has a free slot. * @param v RV (its current tile will be the origin) |