mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Use rate fallback in DrawableHitObject
This commit is contained in:
parent
a73c870712
commit
d9cd546377
@ -704,7 +704,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
}
|
||||
|
||||
Result.RawTime = Time.Current;
|
||||
Result.GameplayRate = (Clock as IGameplayClock)?.GetTrueGameplayRate();
|
||||
Result.GameplayRate = (Clock as IGameplayClock)?.GetTrueGameplayRate() ?? 1.0;
|
||||
|
||||
if (Result.HasResult)
|
||||
updateState(Result.IsHit ? ArmedState.Hit : ArmedState.Miss);
|
||||
|
@ -473,7 +473,7 @@ namespace osu.Game.Rulesets.UI
|
||||
|
||||
private void onNewResult(DrawableHitObject drawable, JudgementResult result)
|
||||
{
|
||||
Debug.Assert(result != null && drawable.Entry?.Result == result && result.RawTime != null && result.GameplayRate != null);
|
||||
Debug.Assert(result != null && drawable.Entry?.Result == result && result.RawTime != null);
|
||||
judgedEntries.Push(drawable.Entry.AsNonNull());
|
||||
|
||||
NewResult?.Invoke(drawable, result);
|
||||
|
Loading…
Reference in New Issue
Block a user