mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 02:08:20 +00:00
Fixed display logic for NS Survival leaderboard
This commit is contained in:
parent
f5caa1f00d
commit
f8d73ccbc5
@ -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;";
|
||||
"WHERE leaderboard_rank BETWEEN min_rank AND max_rank;";
|
||||
|
Loading…
Reference in New Issue
Block a user