Skip to content

Commit

Permalink
Ignore player sprite when updating scores
Browse files Browse the repository at this point in the history
  • Loading branch information
Reco1I committed Sep 21, 2023
1 parent ee36a64 commit 0d2e15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/reco1l/legacy/ui/entity/InGameLeaderboard.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class InGameLeaderboard(var playerName: String, private val stats: StatisticV2)
{
val sprite = getChild(i) as BoardItem

if (i < lastPlayerPosition)
if (i < lastPlayerPosition && sprite != player)
{
if (player.data.playScore >= sprite.data.playScore)
{
Expand Down

0 comments on commit 0d2e15c

Please sign in to comment.