Achievements: Don't display points badge for 0 points

This commit is contained in:
Stenzek
2025-11-27 17:49:12 +10:00
parent 5e2b32f33f
commit 90ec75b4e4

View File

@@ -1336,7 +1336,9 @@ void Achievements::HandleUnlockEvent(const rc_client_event_t* event)
else
title = cheevo->title;
std::string note = fmt::format(ICON_EMOJI_TROPHY " {}", cheevo->points);
std::string note;
if (cheevo->points > 0)
note = fmt::format(ICON_EMOJI_TROPHY " {}", cheevo->points);
FullscreenUI::AddNotification(fmt::format("achievement_unlock_{}", cheevo->id),
static_cast<float>(g_settings.achievements_notification_duration),