1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 03:42:56 +08:00

remove unnecessary variable

This commit is contained in:
Aergwyn 2018-01-22 12:44:55 +01:00
parent 66176f2882
commit b726f90c37
2 changed files with 1 additions and 3 deletions

View File

@ -16,7 +16,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
private readonly RepeatPoint repeatPoint; private readonly RepeatPoint repeatPoint;
private readonly DrawableSlider drawableSlider; private readonly DrawableSlider drawableSlider;
public double FadeInTime;
private double animDuration; private double animDuration;
public DrawableRepeatPoint(RepeatPoint repeatPoint, DrawableSlider drawableSlider) public DrawableRepeatPoint(RepeatPoint repeatPoint, DrawableSlider drawableSlider)
@ -48,7 +47,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
protected override void UpdatePreemptState() protected override void UpdatePreemptState()
{ {
animDuration = Math.Min(150, repeatPoint.StartTime - FadeInTime); animDuration = Math.Min(150, repeatPoint.RepeatDuration / 2);
this.FadeIn(animDuration).ScaleTo(1.2f, animDuration / 2) this.FadeIn(animDuration).ScaleTo(1.2f, animDuration / 2)
.Then() .Then()

View File

@ -93,7 +93,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
{ {
var drawableRepeatPoint = new DrawableRepeatPoint(repeatPoint, this) var drawableRepeatPoint = new DrawableRepeatPoint(repeatPoint, this)
{ {
FadeInTime = repeatPoint.StartTime - s.RepeatDuration / 2,
Position = repeatPoint.Position Position = repeatPoint.Position
}; };