1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +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)
return false;
if (Math.Abs(Clock.CurrentTime - HitTime) > 200)
return false;
approach.Expire();
circle
@ -225,11 +228,14 @@ namespace osu.Game.Screens.Utility
{
base.Update();
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 (HitEvent == null)
{
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)
Expire();
if (Clock.CurrentTime > HitTime + 200)
Expire();
}
}
}
}