Merge pull request #6019 from peppy/hit-window-refactor

Refactor HitWindows for legibility
This commit is contained in:
Dean Herbert
2019-09-06 16:10:04 +09:00
committed by GitHub
57 changed files with 246 additions and 234 deletions

View File

@ -162,7 +162,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
{
UpdateInitialTransforms();
var judgementOffset = Math.Min(HitObject.HitWindows?.HalfWindowFor(HitResult.Miss) ?? double.MaxValue, Result?.TimeOffset ?? 0);
var judgementOffset = Math.Min(HitObject.HitWindows?.WindowFor(HitResult.Miss) ?? double.MaxValue, Result?.TimeOffset ?? 0);
using (BeginDelayedSequence(InitialLifetimeOffset + judgementOffset, true))
{