From abd8ac7b56e8f33874a0bb4025c3e5c2be9b923b Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Wed, 4 Dec 2024 00:50:04 -0800 Subject: [PATCH] update --- dGame/LeaderboardManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dGame/LeaderboardManager.cpp b/dGame/LeaderboardManager.cpp index ae7b0970..f3a27919 100644 --- a/dGame/LeaderboardManager.cpp +++ b/dGame/LeaderboardManager.cpp @@ -281,8 +281,8 @@ void LeaderboardManager::SaveScore(const LWOOBJID& playerID, const GameID activi newHighScore = newScore.primaryScore > oldScore->primaryScore || (newScore.primaryScore == oldScore->primaryScore && newScore.secondaryScore < oldScore->secondaryScore); } else if (leaderboardType == Leaderboard::Type::Survival && Game::config->GetValue("classic_survival_scoring") == "1") { - ILeaderboard::Score oldScoreFlipped(oldScore->secondaryScore, oldScore->primaryScore); - ILeaderboard::Score newScoreFlipped(newScore.secondaryScore, newScore.primaryScore); + ILeaderboard::Score oldScoreFlipped{oldScore->secondaryScore, oldScore->primaryScore, oldScore->tertiaryScore}; + ILeaderboard::Score newScoreFlipped{newScore.secondaryScore, newScore.primaryScore, newScore.tertiaryScore}; newHighScore = newScoreFlipped > oldScoreFlipped; }