diff --git a/contributors.md b/contributors.md index 74c921dfd8..edb58d7480 100644 --- a/contributors.md +++ b/contributors.md @@ -105,6 +105,7 @@ The following people are not part of the development team, but have been contrib * Andrew Arnold (fidwell) - Added window support for more scenery groups. * Josh Trzebiatowski (trzejos) - Ride and scenery filtering * (kyphii) - Extended color selection +* Phumdol Lookthipnapha (beam41) - Misc. ## Bug fixes * (KirilAngelov) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 640467fd55..70ef278b71 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -5,6 +5,7 @@ - Feature: [OpenMusic#25] Added Prehistoric ride music style. - Improved: [#18490] Reduce guests walking through trains on level crossing next to station. - Improved: [#19764] Miscellaneous scenery tab now grouped next to the all-scenery tab. +- Improved: [#19830] “Highlight path issues” will now hide wall elements. - Fix: [#12598] Number of holes is not set correctly when saving track designs. - Fix: [#18895] Responding mechanic blocked at level crossing. - Fix: [#19231] Crash due to null pointer to previously deleted banner in tile copy/paste functionality diff --git a/src/openrct2/paint/tile_element/Paint.Wall.cpp b/src/openrct2/paint/tile_element/Paint.Wall.cpp index 0d8d44f46f..e277bddcf9 100644 --- a/src/openrct2/paint/tile_element/Paint.Wall.cpp +++ b/src/openrct2/paint/tile_element/Paint.Wall.cpp @@ -302,6 +302,11 @@ void PaintWall(PaintSession& session, uint8_t direction, int32_t height, const W { PROFILED_FUNCTION(); + if (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) + { + return; + } + auto* wallEntry = wallElement.GetEntry(); if (wallEntry == nullptr) { @@ -327,7 +332,7 @@ void PaintWall(PaintSession& session, uint8_t direction, int32_t height, const W PaintUtilSetGeneralSupportHeight(session, 8 * wallElement.ClearanceHeight, 0x20); auto isGhost = false; - if (gTrackDesignSaveMode || (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)) + if (gTrackDesignSaveMode) { if (!TrackDesignSaveContainsTileElement(reinterpret_cast(&wallElement))) {