mirror of
https://github.com/ppy/osu.git
synced 2025-03-24 16:17:23 +08:00
use ?: expression
This commit is contained in:
parent
0c9ebcd58c
commit
dfa7448716
@ -149,12 +149,7 @@ namespace osu.Game.Overlays.Music
|
||||
private void playSpecified(BeatmapInfo info)
|
||||
{
|
||||
beatmapBacking.Value = beatmaps.GetWorkingBeatmap(info, beatmapBacking);
|
||||
|
||||
if (BeatmapSets?.Count() == 1)
|
||||
beatmapBacking.Value.Track.Looping = true;
|
||||
else
|
||||
beatmapBacking.Value.Track.Looping = false;
|
||||
|
||||
beatmapBacking.Value.Track.Looping = BeatmapSets?.Count() == 1 ? true : false;
|
||||
beatmapBacking.Value.Track.Start();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user