forked from mirror/OpenTTD
(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:
@@ -1830,8 +1830,7 @@ static bool NtpCallbFindDepot(TileIndex tile, TrainFindDepotData *tfdd, int trac
|
||||
{
|
||||
if (IsTileType(tile, MP_RAILWAY) &&
|
||||
IsTileOwner(tile, tfdd->owner) &&
|
||||
GetRailTileType(tile) == RAIL_TILE_DEPOT_WAYPOINT &&
|
||||
GetRailTileSubtype(tile) == RAIL_SUBTYPE_DEPOT) {
|
||||
IsRailDepot(tile)) {
|
||||
tfdd->best_length = length;
|
||||
tfdd->tile = tile;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user