1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 17:27:48 +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,24 +351,28 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
int badgeNum = 0; int badgeNum = 0;
foreach (var badge in badges) if (score.Rank != ScoreRank.F)
{ {
if (badge.Accuracy > score.Accuracy) foreach (var badge in badges)
continue;
using (BeginDelayedSequence(inverseEasing(ACCURACY_TRANSFORM_EASING, Math.Min(accuracyX - virtual_ss_percentage, badge.Accuracy) / targetAccuracy) * ACCURACY_TRANSFORM_DURATION))
{ {
badge.Appear(); if (badge.Accuracy > score.Accuracy)
continue;
if (withFlair) using (BeginDelayedSequence(
inverseEasing(ACCURACY_TRANSFORM_EASING, Math.Min(accuracyX - virtual_ss_percentage, badge.Accuracy) / targetAccuracy) * ACCURACY_TRANSFORM_DURATION))
{ {
Schedule(() => badge.Appear();
{
var dink = badgeNum < badges.Count - 1 ? badgeTickSound : badgeMaxSound;
dink.FrequencyTo(1 + badgeNum++ * 0.05); if (withFlair)
dink.Play(); {
}); Schedule(() =>
{
var dink = badgeNum < badges.Count - 1 ? badgeTickSound : badgeMaxSound;
dink.FrequencyTo(1 + badgeNum++ * 0.05);
dink.Play();
});
}
} }
} }
} }