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

Function GetFoundation_Road

src/road_cmd.cpp:1975–1982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1973}
1974
1975static Foundation GetFoundation_Road(TileIndex tile, Slope tileh)
1976{
1977 if (IsNormalRoad(tile)) {
1978 return GetRoadFoundation(tileh, GetAllRoadBits(tile));
1979 } else {
1980 return FlatteningFoundation(tileh);
1981 }
1982}
1983
1984static const Roadside _town_road_types[][2] = {
1985 { Roadside::Grass, Roadside::Grass },

Callers

nothing calls this directly

Calls 4

IsNormalRoadFunction · 0.85
GetRoadFoundationFunction · 0.85
GetAllRoadBitsFunction · 0.85
FlatteningFoundationFunction · 0.85

Tested by

no test coverage detected