Skip to content

Commit

Permalink
Merge pull request #18984 from frenzibyte/fix-player-star-difficulty-…
Browse files Browse the repository at this point in the history
…display

Fix replays showing incorrect star difficulty on load
  • Loading branch information
peppy authored Jul 2, 2022
2 parents bc67494 + 2a1777f commit ca75d5f
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions osu.Game/Screens/Play/BeatmapMetadataDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,21 +197,19 @@ protected override void LoadComplete()
starRatingDisplay.Show();
}
else
{
starRatingDisplay.Hide();

starDifficulty.ValueChanged += d =>
{
Debug.Assert(d.NewValue != null);
starDifficulty.ValueChanged += d =>
{
Debug.Assert(d.NewValue != null);

starRatingDisplay.Current.Value = d.NewValue.Value;
starRatingDisplay.Current.Value = d.NewValue.Value;

versionFlow.AutoSizeDuration = 300;
versionFlow.AutoSizeEasing = Easing.OutQuint;
versionFlow.AutoSizeDuration = 300;
versionFlow.AutoSizeEasing = Easing.OutQuint;

starRatingDisplay.FadeIn(300, Easing.InQuint);
};
}
starRatingDisplay.FadeIn(300, Easing.InQuint);
};
}

private class MetadataLineLabel : OsuSpriteText
Expand Down

0 comments on commit ca75d5f

Please sign in to comment.