1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 12:35:34 +08:00

Fix circles in the future being hittable

This commit is contained in:
Dean Herbert 2022-06-10 18:37:53 +09:00
parent ba14d646c3
commit 7f4a54096f

View File

@ -203,6 +203,9 @@ namespace osu.Game.Screens.Utility
if (HitEvent != null) if (HitEvent != null)
return false; return false;
if (Math.Abs(Clock.CurrentTime - HitTime) > 200)
return false;
approach.Expire(); approach.Expire();
circle circle
@ -225,11 +228,14 @@ namespace osu.Game.Screens.Utility
{ {
base.Update(); base.Update();
approach.Scale = new Vector2(1 + (float)MathHelper.Clamp((HitTime - Clock.CurrentTime) / approach_rate_milliseconds.Value, 0, 100)); if (HitEvent == null)
Alpha = (float)MathHelper.Clamp((Clock.CurrentTime - HitTime + 600) / 400, 0, 1); {
approach.Scale = new Vector2(1 + (float)MathHelper.Clamp((HitTime - Clock.CurrentTime) / approach_rate_milliseconds.Value, 0, 100));
Alpha = (float)MathHelper.Clamp((Clock.CurrentTime - HitTime + 600) / 400, 0, 1);
if (Clock.CurrentTime > HitTime + 200) if (Clock.CurrentTime > HitTime + 200)
Expire(); Expire();
}
} }
} }
} }