forked from unfa/liblast
Fixed the duplicate scoretab entries issue
parent
b936750afa
commit
25f5fbc1e9
|
@ -24,10 +24,14 @@ func update_scoretab():
|
|||
scores.sort()
|
||||
scores.reverse()
|
||||
|
||||
var done = []
|
||||
|
||||
for i in scores:
|
||||
for j in main.player_list.players.keys():
|
||||
if main.player_list.get(j).score == i:
|
||||
if j not in done:
|
||||
$ScoreTable/VBoxContainer/ScoreTab.text += str(i) + " - " + main.player_list.get(j).name + "\n"
|
||||
done.append(j)
|
||||
|
||||
func scoretab(show: bool, winner = null):
|
||||
if show:
|
||||
|
|
Loading…
Reference in New Issue