fix leaderboard not incrementing on a not better score (#1674)

This commit is contained in:
David Markowitz
2024-12-10 03:37:49 -08:00
committed by GitHub
parent aa7c3b9061
commit 1dadeeb36f
5 changed files with 9 additions and 0 deletions

View File

@@ -288,6 +288,8 @@ void LeaderboardManager::SaveScore(const LWOOBJID& playerID, const GameID activi
if (newHighScore) {
Database::Get()->UpdateScore(playerID, activityId, newScore);
} else {
Database::Get()->IncrementTimesPlayed(playerID, activityId);
}
} else {
Database::Get()->SaveScore(playerID, activityId, newScore);