This commit is contained in:
David Markowitz 2024-12-04 00:50:04 -08:00
parent 768a9eda6c
commit abd8ac7b56

View File

@ -281,8 +281,8 @@ void LeaderboardManager::SaveScore(const LWOOBJID& playerID, const GameID activi
newHighScore = newScore.primaryScore > oldScore->primaryScore || newHighScore = newScore.primaryScore > oldScore->primaryScore ||
(newScore.primaryScore == oldScore->primaryScore && newScore.secondaryScore < oldScore->secondaryScore); (newScore.primaryScore == oldScore->primaryScore && newScore.secondaryScore < oldScore->secondaryScore);
} else if (leaderboardType == Leaderboard::Type::Survival && Game::config->GetValue("classic_survival_scoring") == "1") { } else if (leaderboardType == Leaderboard::Type::Survival && Game::config->GetValue("classic_survival_scoring") == "1") {
ILeaderboard::Score oldScoreFlipped(oldScore->secondaryScore, oldScore->primaryScore); ILeaderboard::Score oldScoreFlipped{oldScore->secondaryScore, oldScore->primaryScore, oldScore->tertiaryScore};
ILeaderboard::Score newScoreFlipped(newScore.secondaryScore, newScore.primaryScore); ILeaderboard::Score newScoreFlipped{newScore.secondaryScore, newScore.primaryScore, newScore.tertiaryScore};
newHighScore = newScoreFlipped > oldScoreFlipped; newHighScore = newScoreFlipped > oldScoreFlipped;
} }