mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -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)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user