From 924bf9174c97ec4deaae8f8d55cee174d0defbc1 Mon Sep 17 00:00:00 2001 From: tgi74000 Date: Sun, 5 Aug 2018 09:58:15 +0200 Subject: [PATCH] Fix overclick in certain situations --- osu.Game.Rulesets.Osu/Mods/OsuModRelax.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Osu/Mods/OsuModRelax.cs b/osu.Game.Rulesets.Osu/Mods/OsuModRelax.cs index e10ddfaec1..f0e7891a96 100644 --- a/osu.Game.Rulesets.Osu/Mods/OsuModRelax.cs +++ b/osu.Game.Rulesets.Osu/Mods/OsuModRelax.cs @@ -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); } }