summaryrefslogtreecommitdiff
path: root/src/yapf/yapf.h
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-07-09 18:27:42 +0000
committerKUDr <kudr@openttd.org>2007-07-09 18:27:42 +0000
commitd3c7a7fa8c921a6cc9b5c32ad7861c5592f66c36 (patch)
treed5780b33a77161f8dadd239cabf3cb041afcddae /src/yapf/yapf.h
parentd9a2e25dd7251abf789882d0242ad02d051189e0 (diff)
downloadopenttd-d3c7a7fa8c921a6cc9b5c32ad7861c5592f66c36.tar.xz
(svn r10489) -Codechange [YAPF]: FollowTrack_t now has new data member - m_err. It indicates the reason why the given track/trackdir can't be followed when method CFollowTrackT<>::Follow() returned false.
Diffstat (limited to 'src/yapf/yapf.h')
-rw-r--r--src/yapf/yapf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yapf/yapf.h b/src/yapf/yapf.h
index 1c2e08b33..632c55586 100644
--- a/src/yapf/yapf.h
+++ b/src/yapf/yapf.h
@@ -89,6 +89,14 @@ extern int _aystar_stats_closed_size;
/** Base struct for track followers. */
struct FollowTrack_t
{
+ enum ErrorCode {
+ EC_NONE,
+ EC_OWNER,
+ EC_RAIL_TYPE,
+ EC_90DEG,
+ EC_NO_WAY,
+ };
+
const Vehicle* m_veh; ///< moving vehicle
TileIndex m_old_tile; ///< the origin (vehicle moved from) before move
Trackdir m_old_td; ///< the trackdir (the vehicle was on) before move
@@ -99,6 +107,7 @@ struct FollowTrack_t
bool m_is_bridge; ///< last turn passed bridge ramp
bool m_is_station; ///< last turn passed station
int m_tiles_skipped; ///< number of skipped tunnel or station tiles
+ ErrorCode m_err;
};
/** Initializes FollowTrack_t structure */