no longer adjust the clock rate

This commit is contained in:
LeNitrous 2019-03-04 17:48:51 +08:00
parent 86e861ddeb
commit 74a23edaf7
1 changed files with 1 additions and 1 deletions

View File

@ -28,6 +28,7 @@ public virtual void ApplyToClock(IAdjustableClock clk)
{
clock = clk;
pitchAdjust = clk as IHasPitchAdjust;
pitchAdjust.PitchAdjust = 1.0 + AppendRate;
}
public virtual void ApplyToBeatmap(Beatmap<T> beatmap)
@ -40,7 +41,6 @@ public virtual void Update(Playfield playfield)
{
double newRate = 1 + AppendRate < 1 ? Math.Max(1 + AppendRate, 1 + (AppendRate * (clock.CurrentTime / (lastObjectEndTime * 0.75)))) :
Math.Min(1 + AppendRate, 1 + (AppendRate * (clock.CurrentTime / (lastObjectEndTime * 0.75))));
clock.Rate = newRate;
pitchAdjust.PitchAdjust = newRate;
}
}