mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Removed non needed part of code
This commit is contained in:
@ -431,16 +431,6 @@ void CMainMenu::openCampaignScreen(std::string name)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool campaignsFound = true;
|
|
||||||
for (auto const & entry : config[name]["items"].Vector())
|
|
||||||
{
|
|
||||||
ResourcePath resourceID(entry["file"].String(), EResType::CAMPAIGN);
|
|
||||||
if(entry["optional"].Bool())
|
|
||||||
continue;
|
|
||||||
if(!CResourceHandler::get()->existsResource(resourceID))
|
|
||||||
campaignsFound = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
ENGINE->windows().createAndPushWindow<CCampaignScreen>(config, name);
|
ENGINE->windows().createAndPushWindow<CCampaignScreen>(config, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user