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:
parent
ba14d646c3
commit
7f4a54096f
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user