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

Function IsNormalRoadTile

src/road_map.h:58–61  ·  view source on GitHub ↗

* Return whether a tile is a normal road tile. * @param t Tile to query. * @return True if normal road tile. */

Source from the content-addressed store, hash-verified

56 * @return True if normal road tile.
57 */
58[[debug_inline]] inline static bool IsNormalRoadTile(Tile t)
59{
60 return IsTileType(t, MP_ROAD) && IsNormalRoad(t);
61}
62
63/**
64 * Return whether a tile is a level crossing.

Callers 15

DoClearBridgeFunction · 0.85
CleanUpRoadBitsFunction · 0.85
CmdBuildRoadWaypointFunction · 0.85
GetRoadOwnerFunction · 0.85
SetRoadOwnerFunction · 0.85
CheckFlatLandRoadStopFunction · 0.85
CmdBuildRoadStopFunction · 0.85
CmdTurnRoadVehFunction · 0.85
GrowTownWithBridgeFunction · 0.85
CmdBuildRoadFunction · 0.85

Calls 2

IsTileTypeFunction · 0.85
IsNormalRoadFunction · 0.85

Tested by

no test coverage detected