mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +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
@@ -317,14 +317,14 @@ void lightfx_prepare_light_list()
|
||||
}
|
||||
|
||||
int32_t minDist = 0;
|
||||
int32_t baseHeight = -999;
|
||||
int32_t baseHeight = (-999) * 8;
|
||||
|
||||
if (interactionType != VIEWPORT_INTERACTION_ITEM_SPRITE && tileElement)
|
||||
{
|
||||
baseHeight = tileElement->base_height;
|
||||
baseHeight = tileElement->GetBaseZ();
|
||||
}
|
||||
|
||||
minDist = ((baseHeight * 8) - coord_3d.z) / 2;
|
||||
minDist = (baseHeight - coord_3d.z) / 2;
|
||||
|
||||
int32_t deltaX = mapCoord.x - coord_3d.x;
|
||||
int32_t deltaY = mapCoord.y - coord_3d.y;
|
||||
|
||||
Reference in New Issue
Block a user