mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Change LINQ query for better readability
This commit is contained in:
parent
871ca8054f
commit
342acadae2
@ -60,7 +60,7 @@ namespace osu.Game.Storyboards.Drawables
|
||||
|
||||
Size = new Vector2(640, 480);
|
||||
|
||||
bool onlyHasVideoElements = !Storyboard.Layers.Any(l => l.Elements.Any(e => !(e is StoryboardVideo)));
|
||||
bool onlyHasVideoElements = Storyboard.Layers.SelectMany(l => l.Elements).Any(e => !(e is StoryboardVideo));
|
||||
|
||||
Width = Height * (storyboard.BeatmapInfo.WidescreenStoryboard || onlyHasVideoElements ? 16 / 9f : 4 / 3f);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user