mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-09 06:17:10 +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;
|
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;";
|
||||||
|
Loading…
Reference in New Issue
Block a user