| 2575 | } |
| 2576 | |
| 2577 | static int GetSlopePixelZ_Track(TileIndex tile, uint x, uint y, bool) |
| 2578 | { |
| 2579 | if (IsPlainRail(tile)) { |
| 2580 | auto [tileh, z] = GetTilePixelSlope(tile); |
| 2581 | if (tileh == SLOPE_FLAT) return z; |
| 2582 | |
| 2583 | z += ApplyPixelFoundationToSlope(GetRailFoundation(tileh, GetTrackBits(tile)), tileh); |
| 2584 | return z + GetPartialPixelZ(x & 0xF, y & 0xF, tileh); |
| 2585 | } else { |
| 2586 | return GetTileMaxPixelZ(tile); |
| 2587 | } |
| 2588 | } |
| 2589 | |
| 2590 | static Foundation GetFoundation_Track(TileIndex tile, Slope tileh) |
| 2591 | { |
nothing calls this directly
no test coverage detected