Avoid usage of LINQ in last dash trail computation

This commit is contained in:
ekrctb
2021-07-27 19:11:08 +09:00
parent da69867fd4
commit 846f539428
2 changed files with 18 additions and 9 deletions

View File

@ -114,10 +114,9 @@ namespace osu.Game.Rulesets.Catch.UI
if (Catcher.Dashing || Catcher.HyperDashing)
{
double lastTrailTime = CatcherTrails.LastDashTrail?.LifetimeStart ?? double.NegativeInfinity;
double generationInterval = Catcher.HyperDashing ? 25 : 50;
if (Time.Current - lastTrailTime >= generationInterval)
if (Time.Current - CatcherTrails.LastDashTrailTime >= generationInterval)
CatcherTrails.DisplayDashTrail(Catcher.CurrentState, Catcher.X, Catcher.BodyScale, Catcher.HyperDashing);
}