Fix regression

This commit is contained in:
Alayan 2019-04-17 17:25:18 +02:00
parent 201db403f9
commit eba9dfcb25

View File

@ -93,9 +93,13 @@ void StoryModeStatus::computeActive(bool first_call)
for(i = m_challenges_state.begin();
i != m_challenges_state.end(); i++)
{
// Changed challenge
// -----------------
if(!i->second->isUnlockList() && (i->second)->isSolvedAtAnyDifficulty())
// Lock features from unsolved challenges
if(!(i->second)->isSolvedAtAnyDifficulty())
{
lockFeature(i->second);
}
// Count points from solved challenges
else if(!i->second->isUnlockList())
{
int gp_factor = i->second->isGrandPrix() ? GP_FACTOR : 1;
@ -120,12 +124,6 @@ void StoryModeStatus::computeActive(bool first_call)
m_easy_challenges++;
}
}
else
{
// Otherwise lock the feature
// --------------------------
lockFeature(i->second);
}
switch(i->second->highestSolved())
{