| 1958 | } |
| 1959 | |
| 1960 | static int GetSlopePixelZ_Road(TileIndex tile, uint x, uint y, bool) |
| 1961 | { |
| 1962 | |
| 1963 | if (IsNormalRoad(tile)) { |
| 1964 | auto [tileh, z] = GetTilePixelSlope(tile); |
| 1965 | if (tileh == SLOPE_FLAT) return z; |
| 1966 | |
| 1967 | Foundation f = GetRoadFoundation(tileh, GetAllRoadBits(tile)); |
| 1968 | z += ApplyPixelFoundationToSlope(f, tileh); |
| 1969 | return z + GetPartialPixelZ(x & 0xF, y & 0xF, tileh); |
| 1970 | } else { |
| 1971 | return GetTileMaxPixelZ(tile); |
| 1972 | } |
| 1973 | } |
| 1974 | |
| 1975 | static Foundation GetFoundation_Road(TileIndex tile, Slope tileh) |
| 1976 | { |
nothing calls this directly
no test coverage detected