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:
parent
69809390d3
commit
576417947e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user