File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments