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

Use IGameplayClock for rate

This commit is contained in:
Poyo 2023-11-12 12:14:19 -08:00
parent 8c36604e58
commit e67725f5d6

View File

@ -154,6 +154,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
[Resolved(CanBeNull = true)]
private IPooledHitObjectProvider pooledObjectProvider { get; set; }
[Resolved]
private IGameplayClock gameplayClock { get; set; } = null!;
/// <summary>
/// Whether the initialization logic in <see cref="Playfield" /> has applied.
/// </summary>
@ -704,7 +707,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
}
Result.RawTime = Time.Current;
Result.GameplayRate = Clock.Rate;
Result.GameplayRate = gameplayClock.GetTrueGameplayRate();
if (Result.HasResult)
updateState(Result.IsHit ? ArmedState.Hit : ArmedState.Miss);