1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 06:12:56 +08:00

Fix overclick in certain situations

This commit is contained in:
tgi74000 2018-08-05 09:58:15 +02:00
parent b1d1a2400b
commit 924bf9174c

View File

@ -33,6 +33,7 @@ namespace osu.Game.Rulesets.Osu.Mods
continue;
double time = osuHit.Clock.CurrentTime;
double relativetime = time - osuHit.HitObject.StartTime;
if (osuHit.IsAlive && time >= osuHit.HitObject.StartTime - relax_leniency)
{
@ -41,7 +42,7 @@ namespace osu.Game.Rulesets.Osu.Mods
hitStill |= osuHit is DrawableSlider slider && (slider.Ball.IsHovered || osuHit.IsHovered) || osuHit is DrawableSpinner;
hitOnce |= osuHit is DrawableHitCircle && osuHit.IsHovered;
hitOnce |= osuHit is DrawableHitCircle && osuHit.IsHovered && osuHit.HitObject.HitWindows.CanBeHit(relativetime);
}
}