* Gets the height including the bit depending on how far up the slope the peep * is. * rct2: 0x00694921 */
| 2497 | * rct2: 0x00694921 |
| 2498 | */ |
| 2499 | int32_t Peep::GetZOnSlope(int32_t tile_x, int32_t tile_y) |
| 2500 | { |
| 2501 | if (tile_x == kLocationNull) |
| 2502 | return 0; |
| 2503 | |
| 2504 | if (GetNextIsSurface()) |
| 2505 | { |
| 2506 | return TileElementHeight({ tile_x, tile_y }); |
| 2507 | } |
| 2508 | |
| 2509 | uint8_t slope = GetNextDirection(); |
| 2510 | return NextLoc.z + MapHeightFromSlope({ tile_x, tile_y }, slope, GetNextIsSloped()); |
| 2511 | } |
| 2512 | |
| 2513 | StringId GetRealNameStringIDFromPeepID(uint32_t id) |
| 2514 | { |
no test coverage detected