mirror of https://github.com/ppy/osu
no longer adjust the clock rate
This commit is contained in:
parent
86e861ddeb
commit
74a23edaf7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue