(svn r5313) Move IsRailWaypoint() to rail_map.h and remove unused enum

This commit is contained in:
tron
2006-06-19 09:15:16 +00:00
parent befc6accba
commit 072312b538
2 changed files with 8 additions and 9 deletions

View File

@@ -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);