mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
campaign unlock to gamesettings
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "../../lib/CCreatureHandler.h"
|
||||
#include "../../lib/CSkillHandler.h"
|
||||
#include "../../lib/GameLibrary.h"
|
||||
#include "../../lib/IGameSettings.h"
|
||||
#include "../../lib/campaign/CampaignHandler.h"
|
||||
#include "../../lib/filesystem/Filesystem.h"
|
||||
#include "../../lib/mapObjects/CGHeroInstance.h"
|
||||
@@ -177,7 +178,7 @@ CCampaignScreen::CCampaignButton::CCampaignButton(const JsonNode & config, const
|
||||
}
|
||||
}
|
||||
|
||||
if(persistentStorage["unlockAllCampaigns"].Bool())
|
||||
if(LIBRARY->engineSettings()->getBoolean(EGameSettings::CAMPAIGN_UNLOCK_ALL))
|
||||
status = CCampaignScreen::ENABLED;
|
||||
|
||||
if(status != CCampaignScreen::DISABLED)
|
||||
|
||||
Reference in New Issue
Block a user