Fix highlight path issues not hiding wall elements (#19830)

* Fix highlight path issue not hide wall element

* Add changelog and contributors
This commit is contained in:
Meehoi authored and GitHub committed 2023-04-09 19:13:47 +02:00
1 parent 417f1048e9
commit b4156c0c77
3 files changed
+8 -1

No files matched your search

+1
View File
@@ -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)
+1
View File
@@ -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
@@ -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<const TileElement*>(&wallElement)))
{