1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Disallow DualStages for non-converted beatmaps

This commit is contained in:
smoogipoo 2018-01-22 15:52:54 +09:00
parent ba58b25f01
commit c1331cef1b
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,10 @@ namespace osu.Game.Rulesets.Mania.Mods
{
var mrc = (ManiaRulesetContainer)rulesetContainer;
// Although this can work, for now let's not allow keymods for mania-specific beatmaps
if (mrc.IsForCurrentRuleset)
return;
var newDefinitions = new List<StageDefinition>();
foreach (var existing in mrc.Beatmap.Stages)
{

View File

@ -154,7 +154,7 @@ namespace osu.Game.Rulesets.UI
/// <summary>
/// Whether the specified beatmap is assumed to be specific to the current ruleset.
/// </summary>
protected readonly bool IsForCurrentRuleset;
public readonly bool IsForCurrentRuleset;
public override ScoreProcessor CreateScoreProcessor() => new ScoreProcessor<TObject>(this);