1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-09 11:43:47 +08:00

Use truncation to 2dp of star rating in ranked play card to be consistent with everything else (#37756)

Closes https://github.com/ppy/osu/issues/37755.
This commit is contained in:
Bartłomiej Dach
2026-05-15 10:03:21 +02:00
committed by GitHub
Unverified
parent a22c2eaadf
commit c8bfb34117
2 changed files with 5 additions and 3 deletions
@@ -108,7 +108,9 @@ namespace osu.Game.Tests.Visual.RankedPlay
Retries = Enumerable.Range(-2, 100).Select(x => x % 12 - 6).ToArray(),
};
beatmap.StarRating = i + 1;
// the .009 part exercises behaviour of truncating star rating to 2dp
// it should be discarded completely on display
beatmap.StarRating = i + 1.009;
flow.Add(new RankedPlayCardContent(beatmap)
{