1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 22:17:46 +08:00

Add more readiness checks in KeysPerSecondCalculator

This commit is contained in:
Ryuki 2022-08-11 00:43:15 +02:00
parent 9e80d3f71c
commit 46e372cb99
No known key found for this signature in database
GPG Key ID: A353889EAEACBF49

View File

@ -57,7 +57,7 @@ namespace osu.Game.Screens.Play.HUD.KPSCounter
private double maxTime = double.NegativeInfinity;
public bool Ready => workingClock != null && gameplayClock != null;
public bool Ready => workingClock != null && gameplayClock != null && listener != null;
public int Value => timestamps.Count(isTimestampWithinSpan);
public KeysPerSecondCalculator()