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:
parent
d1aa4ecd10
commit
6d01b6d7c9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user