summaryrefslogtreecommitdiff
path: root/src/pathfind.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-24 22:41:50 +0000
committerrubidium <rubidium@openttd.org>2007-05-24 22:41:50 +0000
commit821e58ac9514f7fcd43e01115c4dc2a09b4ee45f (patch)
tree4ec491716328387ce65a5c1f45b836b6f5f57ce2 /src/pathfind.h
parentd0a39a231a6c459a85cabb72fc7d4de8a24d9c93 (diff)
downloadopenttd-821e58ac9514f7fcd43e01115c4dc2a09b4ee45f.tar.xz
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
Diffstat (limited to 'src/pathfind.h')
-rw-r--r--src/pathfind.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pathfind.h b/src/pathfind.h
index 61f72e475..2bafe97f3 100644
--- a/src/pathfind.h
+++ b/src/pathfind.h
@@ -57,6 +57,8 @@ struct TrackPathFinder {
TrackdirByte the_dir;
TransportTypeByte tracktype;
+ uint sub_type;
+
byte var2;
bool disable_tile_hash;
bool hasbit_13;
@@ -67,7 +69,7 @@ struct TrackPathFinder {
TrackPathFinderLink links[0x400]; ///< hopefully, this is enough.
};
-void FollowTrack(TileIndex tile, uint16 flags, DiagDirection direction, TPFEnumProc* enum_proc, TPFAfterProc* after_proc, void* data);
+void FollowTrack(TileIndex tile, uint16 flags, uint sub_type, DiagDirection direction, TPFEnumProc* enum_proc, TPFAfterProc* after_proc, void* data);
struct FindLengthOfTunnelResult {
TileIndex tile;