* Determine the Z height of a corner relative to TileZ. * * @pre The slope must not be a halftile slope. * * @param tileh The slope. * @param corner The corner. * @return Z position of corner relative to TileZ. */
| 338 | * @return Z position of corner relative to TileZ. |
| 339 | */ |
| 340 | int GetSlopeZInCorner(Slope tileh, Corner corner) |
| 341 | { |
| 342 | assert(!IsHalftileSlope(tileh)); |
| 343 | return ((tileh & SlopeWithOneCornerRaised(corner)) != 0 ? 1 : 0) + (tileh == SteepSlope(corner) ? 1 : 0); |
| 344 | } |
| 345 | |
| 346 | /** |
| 347 | * Determine the Z height of the corners of a specific tile edge |