1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Round unstable rate in counter rather than truncating

This commit is contained in:
Bartłomiej Dach 2021-11-11 13:21:56 +01:00
parent 69809390d3
commit 576417947e
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
@ -62,7 +63,7 @@ namespace osu.Game.Screens.Play.HUD
valid.Value = unstableRate != null;
if (unstableRate != null)
Current.Value = (int)unstableRate.Value;
Current.Value = (int)Math.Round(unstableRate.Value);
}
protected override IHasText CreateText() => new TextComponent