--- a/rail.h Fri Jun 17 13:39:59 2005 +0000
+++ b/rail.h Fri Jun 17 17:11:05 2005 +0000
@@ -434,4 +434,13 @@
return (_map3_hi[tile] & SIG_SEMAPHORE_MASK);
}
+/**
+ * Return the rail type of tile, or INVALID_RAILTYPE if this is no rail tile.
+ * Note that there is no check if the given trackdir is actually present on
+ * the tile!
+ * The given trackdir is used when there are (could be) multiple rail types on
+ * one tile.
+ */
+RailType GetTileRailType(TileIndex tile, byte trackdir);
+
#endif // RAIL_H