Browse Source

Removed non needed part of code

George King 7 months ago
parent
commit
02bae5ef21
1 changed files with 0 additions and 10 deletions
  1. 0 10
      client/mainmenu/CMainMenu.cpp

+ 0 - 10
client/mainmenu/CMainMenu.cpp

@@ -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);
 }
 }