Compare commits
2 Commits
d8b35621c8
...
ac5ad00674
Author | SHA1 | Date |
---|---|---|
Nicolas Gnyra | ac5ad00674 | |
Nicolas Gnyra | 6647317b88 |
|
@ -1021,7 +1021,9 @@ SteamAPICall_t UploadLeaderboardScore( SteamLeaderboard_t hSteamLeaderboard, ELe
|
|||
|
||||
bool changed = false;
|
||||
if (eLeaderboardUploadScoreMethod == k_ELeaderboardUploadScoreMethodKeepBest) {
|
||||
if (leaderboards[hSteamLeaderboard - 1].self_score.score <= score.score) {
|
||||
if (leaderboards[hSteamLeaderboard - 1].sort_method == k_ELeaderboardSortMethodAscending
|
||||
? leaderboards[hSteamLeaderboard - 1].self_score.score >= score.score
|
||||
: leaderboards[hSteamLeaderboard - 1].self_score.score <= score.score) {
|
||||
leaderboards[hSteamLeaderboard - 1].self_score = score;
|
||||
changed = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue