From 6d01b6d7c903e0fac7fc29794b884231bf933c6e Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 21 May 2024 15:15:18 +0000 Subject: [PATCH] Show multiplayer saves in singleplayer mode --- client/lobby/SelectionTab.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/lobby/SelectionTab.cpp b/client/lobby/SelectionTab.cpp index 989fd7542..051e37deb 100644 --- a/client/lobby/SelectionTab.cpp +++ b/client/lobby/SelectionTab.cpp @@ -809,7 +809,7 @@ void SelectionTab::parseSaves(const std::unordered_set & files) switch(CSH->getLoadMode()) { case ELoadMode::SINGLE: - if(isMultiplayer || isCampaign || isTutorial) + if(isCampaign || isTutorial) mapInfo->mapHeader.reset(); break; case ELoadMode::CAMPAIGN: @@ -820,10 +820,14 @@ void SelectionTab::parseSaves(const std::unordered_set & files) if(!isTutorial) mapInfo->mapHeader.reset(); break; - default: + case ELoadMode::MULTI: if(!isMultiplayer) mapInfo->mapHeader.reset(); break; + default: + assert(0); + mapInfo->mapHeader.reset(); + break; } allItems.push_back(mapInfo);