Fix overclick in certain situations

This commit is contained in:
tgi74000 2018-08-05 09:58:15 +02:00
parent b1d1a2400b
commit 924bf9174c
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ public void Update(Playfield playfield)
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 @@ public void Update(Playfield playfield)
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);
}
}