| 393 | |
| 394 | |
| 395 | bool HasFoundationNW(TileIndex tile, Slope slope_here, uint z_here) |
| 396 | { |
| 397 | int z_W_here = z_here; |
| 398 | int z_N_here = z_here; |
| 399 | GetSlopePixelZOnEdge(slope_here, DIAGDIR_NW, z_W_here, z_N_here); |
| 400 | |
| 401 | auto [slope, z] = GetFoundationPixelSlope(TileAddXY(tile, 0, -1)); |
| 402 | int z_W = z; |
| 403 | int z_N = z; |
| 404 | GetSlopePixelZOnEdge(slope, DIAGDIR_SE, z_W, z_N); |
| 405 | |
| 406 | return (z_N_here > z_N) || (z_W_here > z_W); |
| 407 | } |
| 408 | |
| 409 | |
| 410 | bool HasFoundationNE(TileIndex tile, Slope slope_here, uint z_here) |
no test coverage detected