MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsNormalRoad

Function IsNormalRoad

src/road_map.h:48–51  ·  view source on GitHub ↗

* Return whether a tile is a normal road. * @param t Tile to query. * @pre IsTileType(t, MP_ROAD) * @return True if normal road. */

Source from the content-addressed store, hash-verified

46 * @return True if normal road.
47 */
48[[debug_inline]] inline static bool IsNormalRoad(Tile t)
49{
50 return GetRoadTileType(t) == RoadTileType::Normal;
51}
52
53/**
54 * Return whether a tile is a normal road tile.

Callers 12

CmdBuildSingleRailFunction · 0.85
IsNormalRoadTileFunction · 0.85
GetRoadBitsFunction · 0.85
SetRoadBitsFunction · 0.85
CmdBuildRoadFunction · 0.85
DrawRoadCatenaryFunction · 0.85
GetSlopePixelZ_RoadFunction · 0.85
GetFoundation_RoadFunction · 0.85
TileLoop_RoadFunction · 0.85
AfterLoadCompanyStatsFunction · 0.85

Calls 1

GetRoadTileTypeFunction · 0.85

Tested by

no test coverage detected