src/yapf/yapf.h
branchnoai
changeset 9641 855e32c08c9b
parent 9601 b499fdd106d5
child 6878 7d1ff2f621c7
--- a/src/yapf/yapf.h	Thu Jul 12 15:52:17 2007 +0000
+++ b/src/yapf/yapf.h	Fri Jul 13 09:18:50 2007 +0000
@@ -89,6 +89,14 @@
 /** 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 @@
 	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 */