diff options
author | tron <tron@openttd.org> | 2006-07-27 05:30:53 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-07-27 05:30:53 +0000 |
commit | 2bb9fd390106356830b6c77cd93eb03efdf12f78 (patch) | |
tree | 402e84c5a08dd81d1c5453aa00229a86afbb0248 /newgrf_station.c | |
parent | b0d5005cadad967b67f65f6f154cf4b8e749f7b6 (diff) | |
download | openttd-2bb9fd390106356830b6c77cd93eb03efdf12f78.tar.xz |
(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
Diffstat (limited to 'newgrf_station.c')
-rw-r--r-- | newgrf_station.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/newgrf_station.c b/newgrf_station.c index 9ef7362ef..b04a1fff0 100644 --- a/newgrf_station.c +++ b/newgrf_station.c @@ -253,8 +253,7 @@ static TileIndex FindRailStationEnd(TileIndex tile, TileIndexDiff delta, bool ch if (waypoint) { if (!IsTileType(new_tile, MP_RAILWAY)) break; - if (GetRailTileType(new_tile) != RAIL_TILE_DEPOT_WAYPOINT) break; - if (GetRailTileSubtype(new_tile) != RAIL_SUBTYPE_WAYPOINT) break; + if (!IsRailWaypoint(new_tile)) break; if (check_axis && GetWaypointAxis(new_tile) != orig_axis) break; } else { if (!IsRailwayStationTile(new_tile)) break; |