mirror of
https://github.com/ppy/osu
synced 2024-12-17 04:15:37 +00:00
Use soft-cast to access IGameplayClock
This commit is contained in:
parent
f794d4dc83
commit
f5e1734de9
@ -154,9 +154,6 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
[Resolved(CanBeNull = true)]
|
||||
private IPooledHitObjectProvider pooledObjectProvider { get; set; }
|
||||
|
||||
[Resolved(CanBeNull = true)]
|
||||
private IGameplayClock gameplayClock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the initialization logic in <see cref="Playfield" /> has applied.
|
||||
/// </summary>
|
||||
@ -707,7 +704,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
}
|
||||
|
||||
Result.RawTime = Time.Current;
|
||||
Result.GameplayRate = gameplayClock?.GetTrueGameplayRate() ?? 1.0;
|
||||
Result.GameplayRate = (Clock as IGameplayClock)?.GetTrueGameplayRate() ?? 1.0;
|
||||
|
||||
if (Result.HasResult)
|
||||
updateState(Result.IsHit ? ArmedState.Hit : ArmedState.Miss);
|
||||
|
Loading…
Reference in New Issue
Block a user