summaryrefslogtreecommitdiff
path: root/src/pathfinder/yapf/yapf.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-13 21:56:40 +0000
committerrubidium <rubidium@openttd.org>2010-12-13 21:56:40 +0000
commit4045429df6e39fbd020a5feda379177b2d2bc267 (patch)
tree05b6e3ca49be9fc6cdc7465458a7fd8101719304 /src/pathfinder/yapf/yapf.h
parent6bc002ad7414fb7d27e9ace04865d501cc3b08b9 (diff)
downloadopenttd-4045429df6e39fbd020a5feda379177b2d2bc267.tar.xz
(svn r21511) -Feature: vehicle lost message for ships
Diffstat (limited to 'src/pathfinder/yapf/yapf.h')
-rw-r--r--src/pathfinder/yapf/yapf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pathfinder/yapf/yapf.h b/src/pathfinder/yapf/yapf.h
index c0108697d..c5cb5d7f6 100644
--- a/src/pathfinder/yapf/yapf.h
+++ b/src/pathfinder/yapf/yapf.h
@@ -23,9 +23,10 @@
* @param tile the tile to find the path from (should be next tile the ship is about to enter)
* @param enterdir diagonal direction which the ship will enter this new tile from
* @param tracks available tracks 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_TRACK if the path could not be found
*/
-Track YapfShipChooseTrack(const Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks);
+Track YapfShipChooseTrack(const Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks, bool &path_found);
/**
* Finds the best path for given road vehicle using YAPF.