mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
Replace more direct accesses to base/clearance Z with getter/setter (#10454)
This commit is contained in:
committed by
GitHub
parent
26cce7e82b
commit
8ca0cf52a7
@@ -860,12 +860,11 @@ void path_paint(paint_session* session, uint16_t height, const TileElement* tile
|
||||
|
||||
auto surface = map_get_surface_element_at(CoordsXY{ session->MapPosition.x, session->MapPosition.y });
|
||||
|
||||
uint16_t bl = height / 8;
|
||||
if (surface == nullptr)
|
||||
{
|
||||
hasSupports = true;
|
||||
}
|
||||
else if (surface->base_height != bl)
|
||||
else if (surface->GetBaseZ() != height)
|
||||
{
|
||||
hasSupports = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user