CRASHFIX: when two players had the same score

This commit is contained in:
Giov4 2022-11-19 20:01:49 +01:00
parent c51bce4594
commit 6d77408f0f

View File

@ -12,7 +12,10 @@ function fbrawl.update_score(arena)
end
table.sort(scores, function (a, b)
return a.score >= b.score
local a_score = a.score
if a.score == b.score then a_score = a_score + 1 end
return a_score > b.score
end)
arena.scores = scores