summaryrefslogtreecommitdiff
path: root/rail.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-19 12:06:12 +0000
committertron <tron@openttd.org>2006-03-19 12:06:12 +0000
commit77e5cf4bc1137805a8e69e6a8ce1370af09dd8d8 (patch)
treeb86bb7662c2be1ce87ebc168346f1677af2a26e4 /rail.h
parentba53ec750a05c8e0e316c8f5838cfad7f9fd13de (diff)
downloadopenttd-77e5cf4bc1137805a8e69e6a8ce1370af09dd8d8.tar.xz
(svn r3979) Move GetRailFoundation() to rail_map.h and use it and friends to get information about rail tiles
Diffstat (limited to 'rail.h')
-rw-r--r--rail.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/rail.h b/rail.h
index a9b3c3874..83ed575b7 100644
--- a/rail.h
+++ b/rail.h
@@ -213,14 +213,6 @@ static inline bool IsPlainRailTile(TileIndex tile)
return rtt == RAIL_TYPE_NORMAL || rtt == RAIL_TYPE_SIGNALS;
}
-/**
- * Returns the tracks present on the given plain rail tile (IsPlainRailTile())
- */
-static inline TrackBits GetTrackBits(TileIndex tile)
-{
- assert(GetRailTileType(tile) == RAIL_TYPE_NORMAL || GetRailTileType(tile) == RAIL_TYPE_SIGNALS);
- return (TrackBits)(_m[tile].m5 & TRACK_BIT_MASK);
-}
/**
* Returns whether the given track is present on the given tile. Tile must be