1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:07:29 +08:00

Simplify misc null-coalescing expression.

This commit is contained in:
Huo Yaoyuan 2017-07-18 12:28:03 +08:00
parent 11cba0638d
commit cd7c04c54d

View File

@ -122,8 +122,10 @@ namespace osu.Game.Screens.Play
audio.Track.SetExclusive(track);
adjustableSourceClock = track;
}
adjustableSourceClock = (IAdjustableClock)track ?? new StopwatchClock();
else
{
adjustableSourceClock = new StopwatchClock();
}
decoupledClock = new DecoupleableInterpolatingFramedClock { IsCoupled = false };