mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:02:55 +08:00
Fix overclick in certain situations
This commit is contained in:
parent
b1d1a2400b
commit
924bf9174c
@ -33,6 +33,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
double time = osuHit.Clock.CurrentTime;
|
double time = osuHit.Clock.CurrentTime;
|
||||||
|
double relativetime = time - osuHit.HitObject.StartTime;
|
||||||
|
|
||||||
if (osuHit.IsAlive && time >= osuHit.HitObject.StartTime - relax_leniency)
|
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;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user