Fix #20882: ‘Rides with preservation status’ tab does not show all rides (#27123)

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2026-09-14 17:08:13 +02:00
1 parent 09da785daf
commit d4a22a1cbc
2 files changed
+7 -6

No files matched your search

+1
View File
@@ -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.
@@ -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<int32_t>(_rideableRides.size()) * 10;
ScreenSize newSize{};
newSize.height = static_cast<int32_t>(_rideableRides.size()) * kScrollableRowHeight;
return newSize;
}
@@ -2296,9 +2296,9 @@ namespace OpenRCT2::Ui::Windows
for (int32_t i = 0; i < static_cast<int32_t>(_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