mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:43:19 +08:00
Use object initialiser.
This commit is contained in:
parent
b6f838f536
commit
c2108b7706
@ -130,8 +130,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
adjustableSourceClock = (IAdjustableClock)track ?? new StopwatchClock();
|
||||
|
||||
decoupledClock = new DecoupleableInterpolatingFramedClock();
|
||||
decoupledClock.IsCoupled = false;
|
||||
decoupledClock = new DecoupleableInterpolatingFramedClock { IsCoupled = false };
|
||||
|
||||
var firstObjectTime = HitRenderer.Objects.First().StartTime;
|
||||
decoupledClock.Seek(Math.Min(0, firstObjectTime - Math.Max(Beatmap.Beatmap.TimingInfo.BeatLengthAt(firstObjectTime) * 4, Beatmap.BeatmapInfo.AudioLeadIn)));
|
||||
|
Loading…
Reference in New Issue
Block a user