Codechange: Use enum class for RailTileType
This commit is contained in:
@@ -45,7 +45,7 @@ RoadType RoadTypeInfo::Index() const
|
||||
static bool IsPossibleCrossing(const TileIndex tile, Axis ax)
|
||||
{
|
||||
return (IsTileType(tile, MP_RAILWAY) &&
|
||||
GetRailTileType(tile) == RAIL_TILE_NORMAL &&
|
||||
GetRailTileType(tile) == RailTileType::Normal &&
|
||||
GetTrackBits(tile) == (ax == AXIS_X ? TRACK_BIT_Y : TRACK_BIT_X) &&
|
||||
std::get<0>(GetFoundationSlope(tile)) == SLOPE_FLAT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user