1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 20:07:25 +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,6 +228,8 @@ namespace osu.Game.Screens.Utility
{
base.Update();
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);
@ -233,4 +238,5 @@ namespace osu.Game.Screens.Utility
}
}
}
}
}