1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Show multiplayer saves in singleplayer mode

This commit is contained in:
Ivan Savenko 2024-05-21 15:15:18 +00:00
parent d1aa4ecd10
commit 6d01b6d7c9

View File

@ -809,7 +809,7 @@ void SelectionTab::parseSaves(const std::unordered_set<ResourcePath> & 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<ResourcePath> & 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);