1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 08:02:55 +08:00

Round star difficulty to two fractional digits during sampling

This commit is contained in:
Salman Ahmed 2021-08-04 02:13:19 +03:00
parent 65db9d664e
commit bec0f379a7

View File

@ -61,7 +61,7 @@ namespace osu.Game.Graphics
(7.0f, Color4Extensions.FromHex("6563de")),
(8.0f, Color4Extensions.FromHex("18158e")),
(8.0f, Color4.Black),
}, (float)starDifficulty);
}, (float)Math.Round(starDifficulty, 2, MidpointRounding.AwayFromZero));
/// <summary>
/// Retrieves the colour for a <see cref="ScoreRank"/>.