mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +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
@@ -469,7 +469,17 @@ int32_t TileElementBase::GetBaseZ() const
|
||||
return base_height * 8;
|
||||
}
|
||||
|
||||
void TileElementBase::SetBaseZ(int32_t newZ)
|
||||
{
|
||||
base_height = (newZ / 8);
|
||||
}
|
||||
|
||||
int32_t TileElementBase::GetClearanceZ() const
|
||||
{
|
||||
return clearance_height * 8;
|
||||
}
|
||||
|
||||
void TileElementBase::SetClearanceZ(int32_t newZ)
|
||||
{
|
||||
clearance_height = (newZ / 8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user