mirror of https://github.com/OpenRCT2/OpenRCT2.git
Do not display railings on underground RCT1 paths
This commit is contained in:
parent
69ab87860c
commit
43985a52c3
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue