Merge pull request #1396 from Azaezel/alpha41/goFilterFish

game mode filterfix
This commit is contained in:
Brian Roberts 2025-02-25 23:37:08 -06:00 committed by GitHub
commit 3c358d45d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -348,7 +348,7 @@ void SubScene::load()
return;
GameMode::findGameModes(mGameModesNames, &mGameModesList);
if ((String(mGameModesNames).isNotEmpty() && mGameModesList.size() == 0) || !evaluateCondition())
if (!isSelected() && (String(mGameModesNames).isNotEmpty() && mGameModesList.size() == 0) || !evaluateCondition())
{
mLoaded = false;
return;

View file

@ -101,7 +101,8 @@ void GameMode::findGameModes(const char* gameModeList, Vector<GameMode*> *outGam
GameMode* gm;
if (Sim::findObject(gameModeNames[i].c_str(), gm))
{
outGameModes->push_back(gm);
if (gm->isActive() || gm->isAlwaysActive())
outGameModes->push_back(gm);
}
}
}