rail.h
changeset 1950 6e4d384034d9
parent 1948 e5f34b543a3c
child 1967 c57192f4c121
--- 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