From 0ae00cbd17f006272a4ea1ecde3f03bbaf9a1619 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 29 Dec 2017 18:28:16 +0900 Subject: [PATCH] Rename one more variable --- osu.Game.Rulesets.Osu/Mods/OsuMod.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game.Rulesets.Osu/Mods/OsuMod.cs b/osu.Game.Rulesets.Osu/Mods/OsuMod.cs index f24a360575..c19f8a679b 100644 --- a/osu.Game.Rulesets.Osu/Mods/OsuMod.cs +++ b/osu.Game.Rulesets.Osu/Mods/OsuMod.cs @@ -56,7 +56,7 @@ namespace osu.Game.Rulesets.Osu.Mods var fadeOutDuration = preEmpt * fade_out_duration_multiplier; // new duration from completed fade in to end (before fading out) - var newDuration = ((d.HitObject as IHasEndTime)?.EndTime ?? d.HitObject.StartTime) - fadeOutStartTime; + var longFadeDuration = ((d.HitObject as IHasEndTime)?.EndTime ?? d.HitObject.StartTime) - fadeOutStartTime; d.FadeIn = fadeInDuration; @@ -75,10 +75,10 @@ namespace osu.Game.Rulesets.Osu.Mods case DrawableSlider slider: using (slider.BeginAbsoluteSequence(fadeOutStartTime, true)) { - slider.Body.FadeOut(newDuration, Easing.Out); + slider.Body.FadeOut(longFadeDuration, Easing.Out); // delay a bit less to let the sliderball fade out peacefully instead of having a hard cut - using (slider.BeginDelayedSequence(newDuration - fadeOutDuration, true)) + using (slider.BeginDelayedSequence(longFadeDuration - fadeOutDuration, true)) { slider.Ball.FadeOut(fadeOutDuration); slider.Delay(fadeOutDuration).Expire(); @@ -92,7 +92,7 @@ namespace osu.Game.Rulesets.Osu.Mods using (spinner.BeginAbsoluteSequence(fadeOutStartTime, true)) { - var sequence = spinner.Delay(newDuration).FadeOut(fadeOutDuration); + var sequence = spinner.Delay(longFadeDuration).FadeOut(fadeOutDuration); // speed up the end sequence accordingly switch (state)