mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-22 15:48:08 -05:00
fix rank icons appearing when they shouldn't be
This commit is contained in:
parent
4c037de247
commit
bd7875e86a
1 changed files with 3 additions and 0 deletions
|
@ -351,6 +351,9 @@ class Scoring
|
|||
{
|
||||
if (scoreData == null) return null;
|
||||
|
||||
// we can return null here, meaning that the player hasn't actually played and finished the song (thus has no data)
|
||||
if (scoreData.tallies.totalNotes == 0) return null;
|
||||
|
||||
// Perfect (Platinum) is a Sick Full Clear
|
||||
var isPerfectGold = scoreData.tallies.sick == scoreData.tallies.totalNotes;
|
||||
if (isPerfectGold) return ScoringRank.PERFECT_GOLD;
|
||||
|
|
Loading…
Reference in a new issue