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