Skip to content

Commit eba9dfc

Browse files
committed
Fix regression
1 parent 201db40 commit eba9dfc

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/challenges/story_mode_status.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,13 @@ void StoryModeStatus::computeActive(bool first_call)
9393
for(i = m_challenges_state.begin();
9494
i != m_challenges_state.end(); i++)
9595
{
96-
// Changed challenge
97-
// -----------------
98-
if(!i->second->isUnlockList() && (i->second)->isSolvedAtAnyDifficulty())
96+
// Lock features from unsolved challenges
97+
if(!(i->second)->isSolvedAtAnyDifficulty())
98+
{
99+
lockFeature(i->second);
100+
}
101+
// Count points from solved challenges
102+
else if(!i->second->isUnlockList())
99103
{
100104
int gp_factor = i->second->isGrandPrix() ? GP_FACTOR : 1;
101105

@@ -120,12 +124,6 @@ void StoryModeStatus::computeActive(bool first_call)
120124
m_easy_challenges++;
121125
}
122126
}
123-
else
124-
{
125-
// Otherwise lock the feature
126-
// --------------------------
127-
lockFeature(i->second);
128-
}
129127

130128
switch(i->second->highestSolved())
131129
{

0 commit comments

Comments
 (0)