Fixed display logic for NS Survival leaderboard

This commit is contained in:
HailStorm32 2022-05-25 02:03:40 +00:00
parent f5caa1f00d
commit f8d73ccbc5

View File

@ -123,7 +123,7 @@ void LeaderboardManager::SaveScore(LWOOBJID playerID, uint32_t gameID, uint32_t
} }
break; break;
case SurvivalNS: case SurvivalNS:
if (score < storedScore || time >= storedTime) if (!(score > storedScore || (time < storedTime && score >= storedScore)))
highscore = false; highscore = false;
break; break;
default: default:
@ -462,4 +462,4 @@ const std::string LeaderboardManager::standingsTimeQueryAsc =
" FROM leaderboard_vales WHERE id = ? LIMIT 1) " " FROM leaderboard_vales WHERE id = ? LIMIT 1) "
"SELECT time, score, leaderboard_rank, id, name, last_played " "SELECT time, score, leaderboard_rank, id, name, last_played "
"FROM leaderboard_vales, personal_values " "FROM leaderboard_vales, personal_values "
"WHERE leaderboard_rank BETWEEN min_rank AND max_rank;"; "WHERE leaderboard_rank BETWEEN min_rank AND max_rank;";