(svn r5624) Use {IsPlainRailTile,IsRailDepot,IsRailWaypoint,HasSignals}() instead of GetRailTile{T,Subt}ype() - this is more concise and a bit more flexible if/when the rail tile encoding changes

This commit is contained in:
tron
2006-07-27 05:30:53 +00:00
parent b0d5005cad
commit 2bb9fd3901
6 changed files with 34 additions and 35 deletions

View File

@@ -60,6 +60,14 @@ static inline RailTileSubtype GetRailTileSubtype(TileIndex tile)
}
static inline bool IsRailDepot(TileIndex t)
{
return
GetRailTileType(t) == RAIL_TILE_DEPOT_WAYPOINT &&
GetRailTileSubtype(t) == RAIL_SUBTYPE_DEPOT;
}
static inline bool IsRailWaypoint(TileIndex t)
{
return