mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 23:12:56 +08:00
Use IGameplayClock for rate
This commit is contained in:
parent
8c36604e58
commit
e67725f5d6
@ -154,6 +154,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
|||||||
[Resolved(CanBeNull = true)]
|
[Resolved(CanBeNull = true)]
|
||||||
private IPooledHitObjectProvider pooledObjectProvider { get; set; }
|
private IPooledHitObjectProvider pooledObjectProvider { get; set; }
|
||||||
|
|
||||||
|
[Resolved]
|
||||||
|
private IGameplayClock gameplayClock { get; set; } = null!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the initialization logic in <see cref="Playfield" /> has applied.
|
/// Whether the initialization logic in <see cref="Playfield" /> has applied.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -704,7 +707,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result.RawTime = Time.Current;
|
Result.RawTime = Time.Current;
|
||||||
Result.GameplayRate = Clock.Rate;
|
Result.GameplayRate = gameplayClock.GetTrueGameplayRate();
|
||||||
|
|
||||||
if (Result.HasResult)
|
if (Result.HasResult)
|
||||||
updateState(Result.IsHit ? ArmedState.Hit : ArmedState.Miss);
|
updateState(Result.IsHit ? ArmedState.Hit : ArmedState.Miss);
|
||||||
|
Loading…
Reference in New Issue
Block a user