From 3b0445a244b906336545248cadc0b098e5e7e2d9 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 6 Mar 2017 14:08:58 +0900 Subject: [PATCH] Improve comment for PreferredPlayMode and allow null. --- osu.Game/Beatmaps/WorkingBeatmap.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game/Beatmaps/WorkingBeatmap.cs b/osu.Game/Beatmaps/WorkingBeatmap.cs index 0ee45d871b..50f8264ebe 100644 --- a/osu.Game/Beatmaps/WorkingBeatmap.cs +++ b/osu.Game/Beatmaps/WorkingBeatmap.cs @@ -19,12 +19,12 @@ namespace osu.Game.Beatmaps public readonly BeatmapSetInfo BeatmapSetInfo; /// - /// A play mode that is preferred for this beatmap. This allows for conversion between game modes where feasible, - /// but does not gurantee an outcome. + /// A play mode that is preferred for this beatmap. PlayMode will become this mode where conversion is feasible, + /// or otherwise to the beatmap's default. /// - public PlayMode PreferredPlayMode; + public PlayMode? PreferredPlayMode; - public PlayMode PlayMode => beatmap?.BeatmapInfo?.Mode > PlayMode.Osu ? beatmap.BeatmapInfo.Mode : PreferredPlayMode; + public PlayMode PlayMode => beatmap?.BeatmapInfo?.Mode > PlayMode.Osu || !PreferredPlayMode.HasValue ? beatmap.BeatmapInfo.Mode : PreferredPlayMode.Value; public readonly bool WithStoryboard;