1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:33:20 +08:00

Merge pull request #22516 from mk56-spn/BPM_counter_fix

Fix BPM counter value being affected by non-mod-related playback rate changes
This commit is contained in:
Bartłomiej Dach 2023-02-05 00:50:05 +01:00 committed by GitHub
commit 9bcc6bf6da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,11 +37,8 @@ namespace osu.Game.Screens.Play.HUD
{
base.Update();
//We don't want it going to 0 when we pause. so we block the updates
if (gameplayClock.IsPaused.Value) return;
// We want to check Rate every update to cover windup/down
Current.Value = beatmap.Value.Beatmap.ControlPointInfo.TimingPointAt(gameplayClock.CurrentTime).BPM * gameplayClock.Rate;
Current.Value = beatmap.Value.Beatmap.ControlPointInfo.TimingPointAt(gameplayClock.CurrentTime).BPM * gameplayClock.GetTrueGameplayRate();
}
protected override OsuSpriteText CreateSpriteText()