From f09006b6dd4ad438719157639c347995cab50417 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Tue, 12 Oct 2021 10:13:11 +0200 Subject: [PATCH] Do not change clearance height when toggling slope --- src/openrct2/world/TileInspector.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/openrct2/world/TileInspector.cpp b/src/openrct2/world/TileInspector.cpp index d103d1b7dd..fcb3a3798f 100644 --- a/src/openrct2/world/TileInspector.cpp +++ b/src/openrct2/world/TileInspector.cpp @@ -641,18 +641,6 @@ namespace OpenRCT2::TileInspector { uint8_t newSlope = surfaceElement->GetSlope() ^ TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT; surfaceElement->SetSlope(newSlope); - if (surfaceElement->GetSlope() & TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT) - { - surfaceElement->clearance_height = surfaceElement->base_height + 4; - } - else if (surfaceElement->GetSlope() & TILE_ELEMENT_SLOPE_ALL_CORNERS_UP) - { - surfaceElement->clearance_height = surfaceElement->base_height + 2; - } - else - { - surfaceElement->clearance_height = surfaceElement->base_height; - } map_invalidate_tile_full(loc);