mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 08:14:38 +01:00
Change ride->overall_view to CoordsXY (#10673)
This commit is contained in:
committed by
GitHub
parent
5da4903430
commit
d16fbb0cd2
@@ -416,14 +416,14 @@ int16_t tile_element_height(const CoordsXY& loc)
|
||||
{
|
||||
// Off the map
|
||||
if (!map_is_location_valid(loc))
|
||||
return 16;
|
||||
return 2 * COORDS_Z_STEP;
|
||||
|
||||
// Get the surface element for the tile
|
||||
auto surfaceElement = map_get_surface_element_at(loc);
|
||||
|
||||
if (surfaceElement == nullptr)
|
||||
{
|
||||
return 16;
|
||||
return 2 * COORDS_Z_STEP;
|
||||
}
|
||||
|
||||
uint16_t height = surfaceElement->GetBaseZ();
|
||||
@@ -525,7 +525,7 @@ int16_t tile_element_height(const CoordsXY& loc)
|
||||
return height;
|
||||
}
|
||||
// This tile is essentially at the next height level
|
||||
height += 0x10;
|
||||
height += LAND_HEIGHT_STEP;
|
||||
// so we move *down* the slope
|
||||
if (quad < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user