1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 15:53:21 +08:00

Fix results screen showing other rank badges on F rank

This commit is contained in:
Salman Ahmed 2024-01-27 01:46:12 +03:00
parent 2ccd0e3692
commit 47f0b86018

View File

@ -351,12 +351,15 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
int badgeNum = 0; int badgeNum = 0;
if (score.Rank != ScoreRank.F)
{
foreach (var badge in badges) foreach (var badge in badges)
{ {
if (badge.Accuracy > score.Accuracy) if (badge.Accuracy > score.Accuracy)
continue; continue;
using (BeginDelayedSequence(inverseEasing(ACCURACY_TRANSFORM_EASING, Math.Min(accuracyX - virtual_ss_percentage, badge.Accuracy) / targetAccuracy) * ACCURACY_TRANSFORM_DURATION)) using (BeginDelayedSequence(
inverseEasing(ACCURACY_TRANSFORM_EASING, Math.Min(accuracyX - virtual_ss_percentage, badge.Accuracy) / targetAccuracy) * ACCURACY_TRANSFORM_DURATION))
{ {
badge.Appear(); badge.Appear();
@ -372,6 +375,7 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
} }
} }
} }
}
using (BeginDelayedSequence(TEXT_APPEAR_DELAY)) using (BeginDelayedSequence(TEXT_APPEAR_DELAY))
{ {