1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-01 01:43:26 +08:00

Fix PlayMode regression.

This commit is contained in:
Dean Herbert 2017-03-06 14:25:38 +09:00
parent 652d18aada
commit 1ea21daa91
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -24,7 +24,7 @@ namespace osu.Game.Beatmaps
/// </summary>
public PlayMode? PreferredPlayMode;
public PlayMode PlayMode => beatmap?.BeatmapInfo?.Mode > PlayMode.Osu || !PreferredPlayMode.HasValue ? beatmap.BeatmapInfo.Mode : PreferredPlayMode.Value;
public PlayMode PlayMode => beatmap?.BeatmapInfo?.Mode > PlayMode.Osu ? beatmap.BeatmapInfo.Mode : PreferredPlayMode ?? PlayMode.Osu;
public readonly bool WithStoryboard;