Skip to content

Commit 24ca190

Browse files
authored
Adjust Total Achievement Count (#1924)
- Don't count the glitched achievements towards the total so that they appear over 100%
1 parent eefa69b commit 24ca190

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dusk/ui/achievements.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ void AchievementsWindow::updateTotal() {
217217
return;
218218
}
219219
const auto all = AchievementSystem::get().getAchievements();
220-
int total = static_cast<int>(all.size());
220+
const int total = std::count_if(all.begin(), all.end(), [](const Achievement& achievement){ return achievement.category != AchievementCategory::Glitched;});
221221
int unlocked = 0;
222222
for (const auto& a : all) {
223223
if (a.unlocked) {

0 commit comments

Comments
 (0)