mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 11:03:22 +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)
|
if (HitEvent != null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (Math.Abs(Clock.CurrentTime - HitTime) > 200)
|
||||||
|
return false;
|
||||||
|
|
||||||
approach.Expire();
|
approach.Expire();
|
||||||
|
|
||||||
circle
|
circle
|
||||||
@ -225,6 +228,8 @@ namespace osu.Game.Screens.Utility
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
|
if (HitEvent == null)
|
||||||
|
{
|
||||||
approach.Scale = new Vector2(1 + (float)MathHelper.Clamp((HitTime - Clock.CurrentTime) / approach_rate_milliseconds.Value, 0, 100));
|
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);
|
Alpha = (float)MathHelper.Clamp((Clock.CurrentTime - HitTime + 600) / 400, 0, 1);
|
||||||
|
|
||||||
@ -234,3 +239,4 @@ namespace osu.Game.Screens.Utility
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user