Adjust Total Achievement Count (#1924)

- Don't count the glitched achievements towards the total so that they appear over 100%
This commit is contained in:
SuperDude88
2026-06-05 02:05:47 -04:00
committed by GitHub
parent eefa69b53d
commit 24ca190029
+1 -1
View File
@@ -217,7 +217,7 @@ void AchievementsWindow::updateTotal() {
return;
}
const auto all = AchievementSystem::get().getAchievements();
int total = static_cast<int>(all.size());
const int total = std::count_if(all.begin(), all.end(), [](const Achievement& achievement){ return achievement.category != AchievementCategory::Glitched;});
int unlocked = 0;
for (const auto& a : all) {
if (a.unlocked) {