Do not display railings on underground RCT1 paths

This commit is contained in:
Gymnasiast 2021-04-23 19:11:26 +02:00
parent 69ab87860c
commit 43985a52c3
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 5 additions and 1 deletions

View File

@ -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
{