diff --git a/dGame/LeaderboardManager.cpp b/dGame/LeaderboardManager.cpp index 210dee92..bb8697e6 100644 --- a/dGame/LeaderboardManager.cpp +++ b/dGame/LeaderboardManager.cpp @@ -123,7 +123,7 @@ void LeaderboardManager::SaveScore(LWOOBJID playerID, uint32_t gameID, uint32_t } break; case SurvivalNS: - if (score < storedScore || time >= storedTime) + if (!(score > storedScore || (time < storedTime && score >= storedScore))) highscore = false; break; default: @@ -462,4 +462,4 @@ const std::string LeaderboardManager::standingsTimeQueryAsc = " FROM leaderboard_vales WHERE id = ? LIMIT 1) " "SELECT time, score, leaderboard_rank, id, name, last_played " "FROM leaderboard_vales, personal_values " -"WHERE leaderboard_rank BETWEEN min_rank AND max_rank;"; \ No newline at end of file +"WHERE leaderboard_rank BETWEEN min_rank AND max_rank;";