From 43985a52c3f2751aff3f5459c0a5152475030acd Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 23 Apr 2021 19:11:26 +0200 Subject: [PATCH] Do not display railings on underground RCT1 paths --- src/openrct2/paint/tile_element/Paint.Path.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp index 3e9fa281b4..6eda35efe3 100644 --- a/src/openrct2/paint/tile_element/Paint.Path.cpp +++ b/src/openrct2/paint/tile_element/Paint.Path.cpp @@ -918,7 +918,11 @@ void path_paint(paint_session* session, uint16_t height, const TileElement* tile } else if (surface->GetBaseZ() != height) { - hasSupports = true; + const auto* surfaceEntry = pathEl->GetSurfaceEntry(); + const bool showUndergroundRailings = surfaceEntry == nullptr + || !(surfaceEntry->Flags & FOOTPATH_ENTRY_FLAG_NO_SLOPE_RAILINGS); + if (surface->GetBaseZ() < height || showUndergroundRailings) + hasSupports = true; } else {