diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp index 1561b0824a..49e4ee227a 100644 --- a/src/openrct2/paint/tile_element/Paint.Path.cpp +++ b/src/openrct2/paint/tile_element/Paint.Path.cpp @@ -703,8 +703,7 @@ static void sub_6A3F61( if (sceneryEntry == nullptr) return; - if ((session->ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) - && !(tile_element->AsPath()->IsBroken()) + if ((session->ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) && !(tile_element->AsPath()->IsBroken()) && !(sceneryEntry->path_bit.draw_type == PATH_BIT_DRAW_TYPE_BINS)) { return; diff --git a/src/openrct2/world/Footpath.cpp b/src/openrct2/world/Footpath.cpp index ec4dcfc36c..574038a3e4 100644 --- a/src/openrct2/world/Footpath.cpp +++ b/src/openrct2/world/Footpath.cpp @@ -2035,7 +2035,6 @@ void PathElement::SetHasQueueBanner(bool hasQueueBanner) entryIndex |= FOOTPATH_PROPERTIES_FLAG_HAS_QUEUE_BANNER; } - bool PathElement::IsBroken() const { return (flags & TILE_ELEMENT_FLAG_BROKEN) != 0; diff --git a/test/testpaint/Compat.cpp b/test/testpaint/Compat.cpp index 82cd9ab232..829aa80eb8 100644 --- a/test/testpaint/Compat.cpp +++ b/test/testpaint/Compat.cpp @@ -170,6 +170,11 @@ bool TileElementBase::IsGhost() const return (this->flags & TILE_ELEMENT_FLAG_GHOST) != 0; } +bool TrackElement::BlockBrakeClosed() const +{ + return (flags & TILE_ELEMENT_FLAG_BLOCK_BRAKE_CLOSED) != 0; +} + TileElement* map_get_first_element_at(int x, int y) { if (x < 0 || y < 0 || x > 255 || y > 255)