diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dec26360a..5ea7a5b315 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ - Fix: [#2287] Scroll wheel not working in load/save window. - Fix: [#2290] Construction arrow not being correctly invalidated. - Fix: [#2291] Signals fail to be placed when selecting one end of large curve track. +- Fix: [#2293] See-through trees flag is ignored when right-clicking a viewport. +- Change: [#2294] Track and road elements are now ignored when they are see-through. 24.01.1 (2024-01-17) ------------------------------------------------------------------------ diff --git a/src/OpenLoco/src/Ui/ViewportInteraction.cpp b/src/OpenLoco/src/Ui/ViewportInteraction.cpp index dab018a589..73359c3a5e 100644 --- a/src/OpenLoco/src/Ui/ViewportInteraction.cpp +++ b/src/OpenLoco/src/Ui/ViewportInteraction.cpp @@ -918,9 +918,21 @@ namespace OpenLoco::Ui::ViewportInteraction { interactionsToExclude |= InteractionItemFlags::building | InteractionItemFlags::headquarterBuilding | InteractionItemFlags::industry; } + if (vp->hasFlags(ViewportFlags::seeThroughTrees)) + { + interactionsToExclude |= InteractionItemFlags::tree; + } if (vp->hasFlags(ViewportFlags::seeThroughScenery)) { - interactionsToExclude |= InteractionItemFlags::tree | InteractionItemFlags::wall; + interactionsToExclude |= InteractionItemFlags::wall; + } + if (vp->hasFlags(ViewportFlags::seeThroughTracks)) + { + interactionsToExclude |= InteractionItemFlags::track | InteractionItemFlags::trackExtra | InteractionItemFlags::signal; + } + if (vp->hasFlags(ViewportFlags::seeThroughRoads)) + { + interactionsToExclude |= InteractionItemFlags::roadAndTram | InteractionItemFlags::roadAndTramExtra; } } }