1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Fix issue for when smoothing raises a tile above water level

This commit is contained in:
Broxzier
2017-03-09 20:27:18 +01:00
committed by Michał Janiszewski
parent 7fc9846bec
commit ca6c82a39d

View File

@@ -398,6 +398,11 @@ sint32 tile_smooth(sint32 x, sint32 y)
{
// All corners are raised, raise the entire tile instead.
surfaceElement->base_height = (surfaceElement->clearance_height += 2);
uint8 waterHeight = (surfaceElement->properties.surface.terrain & 0x1F) * 2;
if (waterHeight <= surfaceElement->base_height)
{
surfaceElement->properties.surface.terrain &= ~0x1F;
}
}
else
{