Skip to content

Commit 667bd38

Browse files
committed
ScenarioSelect: Fix empty tabs being shown due to hidden scenarios
1 parent af66767 commit 667bd38

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/openrct2-ui/windows/ScenarioSelect.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,15 +933,22 @@ namespace OpenRCT2::Ui::Windows
933933
switch (Config::Get().general.scenarioSelectMode)
934934
{
935935
case ScenarioSelectMode::origin:
936-
showPages |= 1 << static_cast<uint8_t>(scenario->SourceGame);
936+
if (scenario->SourceGame >= ScenarioSource::RCT2 || scenario->Extension != FileExtension::SEA &&
937+
scenario->ScenarioId != SC_MEGA_PARK)
938+
{
939+
showPages |= 1 << static_cast<uint8_t>(scenario->SourceGame);
940+
}
937941
break;
938942
default:
939943
case ScenarioSelectMode::difficulty:
940944
if (category > ScenarioCategory::other)
941945
{
942946
category = ScenarioCategory::other;
943947
}
944-
showPages |= 1 << EnumValue(category);
948+
if (scenario->SourceGame >= ScenarioSource::RCT2 || scenario->Extension != FileExtension::SEA)
949+
{
950+
showPages |= 1 << EnumValue(category);
951+
}
945952
break;
946953
case ScenarioSelectMode::group:
947954
if (group == ScenarioGroup::bonus)

0 commit comments

Comments
 (0)