diff options
author | tron <tron@openttd.org> | 2006-06-19 09:15:16 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-06-19 09:15:16 +0000 |
commit | fc4a046fe23b2727ac1ab7a6590450b48f0e01d9 (patch) | |
tree | 4a678acd6c78c178da7b9e33fc712bb04b2c74de /rail_map.h | |
parent | c0ca6fbd660d7de6a649a781f07a87ca442053e0 (diff) | |
download | openttd-fc4a046fe23b2727ac1ab7a6590450b48f0e01d9.tar.xz |
(svn r5313) Move IsRailWaypoint() to rail_map.h and remove unused enum
Diffstat (limited to 'rail_map.h')
-rw-r--r-- | rail_map.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rail_map.h b/rail_map.h index bf32f5030..67973b9fb 100644 --- a/rail_map.h +++ b/rail_map.h @@ -60,6 +60,14 @@ static inline RailTileSubtype GetRailTileSubtype(TileIndex tile) } +static inline bool IsRailWaypoint(TileIndex t) +{ + return + GetRailTileType(t) == RAIL_TILE_DEPOT_WAYPOINT && + GetRailTileSubtype(t) == RAIL_SUBTYPE_WAYPOINT; +} + + static inline RailType GetRailType(TileIndex t) { return (RailType)GB(_m[t].m3, 0, 4); |