|
|
@@ -431,16 +431,6 @@ void CMainMenu::openCampaignScreen(std::string name)
|
|
|
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);
|
|
|
}
|
|
|
|