From d4a22a1cbca743ef8f68efe61b2ce75b83cc87a8 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Mon, 14 Sep 2026 17:08:13 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20#20882:=20=E2=80=98Rides=20with=20preserv?= =?UTF-8?q?ation=20status=E2=80=99=20tab=20does=20not=20show=20all=20rides?= =?UTF-8?q?=20(#27123)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/EditorScenarioOptions.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 92b36913fd..a471cd51ff 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -6,6 +6,7 @@ - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. - Fix: [#17409] When reading system settings, non-US dollar currencies are not recognised correctly. - Fix: [#19754, #27109] Some rides in RCT1 saves have a wrong number of cars per train. +- Fix: [#20882] When setting rides with preservation status in the Scenario Editor, some rides are not shown. - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#21576] RCT1 Wooden wild mouse track designs with 2-car trains are not imported correctly. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. diff --git a/src/openrct2-ui/windows/EditorScenarioOptions.cpp b/src/openrct2-ui/windows/EditorScenarioOptions.cpp index 2ad69486fe..a065c0ef9c 100644 --- a/src/openrct2-ui/windows/EditorScenarioOptions.cpp +++ b/src/openrct2-ui/windows/EditorScenarioOptions.cpp @@ -493,7 +493,7 @@ namespace OpenRCT2::Ui::Windows { if (page == WINDOW_EDITOR_SCENARIO_OPTIONS_PAGE_RIDES) { - return RidesOnScrollGetSize(scrollIndex); + return RidesOnScrollGetSize(); } return {}; @@ -2219,10 +2219,10 @@ namespace OpenRCT2::Ui::Windows * * rct2: 0x006724BF */ - ScreenSize RidesOnScrollGetSize(int32_t scrollIndex) + ScreenSize RidesOnScrollGetSize() { - ScreenSize newSize; - newSize.height = static_cast(_rideableRides.size()) * 10; + ScreenSize newSize{}; + newSize.height = static_cast(_rideableRides.size()) * kScrollableRowHeight; return newSize; } @@ -2296,9 +2296,9 @@ namespace OpenRCT2::Ui::Windows for (int32_t i = 0; i < static_cast(_rideableRides.size()); i++) { - int32_t y = i * 12; + int32_t y = i * kScrollableRowHeight; - if (y + 12 < rt.y || y >= rt.y + rt.height) + if (y + kScrollableRowHeight < rt.y || y >= rt.y + rt.height) continue; // Checkbox