mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Fix mania-specific beatmap conversion
This commit is contained in:
parent
03a5df84c6
commit
f3aa9269ff
@ -41,7 +41,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
|
|||||||
var roundedCircleSize = Math.Round(beatmap.BeatmapInfo.BaseDifficulty.CircleSize);
|
var roundedCircleSize = Math.Round(beatmap.BeatmapInfo.BaseDifficulty.CircleSize);
|
||||||
var roundedOverallDifficulty = Math.Round(beatmap.BeatmapInfo.BaseDifficulty.OverallDifficulty);
|
var roundedOverallDifficulty = Math.Round(beatmap.BeatmapInfo.BaseDifficulty.OverallDifficulty);
|
||||||
|
|
||||||
if (beatmap.BeatmapInfo.Ruleset == new ManiaRuleset().RulesetInfo)
|
if (IsForCurrentRuleset)
|
||||||
TargetColumns = (int)Math.Max(1, roundedCircleSize);
|
TargetColumns = (int)Math.Max(1, roundedCircleSize);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -118,7 +118,8 @@ namespace osu.Game.Rulesets
|
|||||||
Name = Description,
|
Name = Description,
|
||||||
ShortName = ShortName,
|
ShortName = ShortName,
|
||||||
InstantiationInfo = GetType().AssemblyQualifiedName,
|
InstantiationInfo = GetType().AssemblyQualifiedName,
|
||||||
ID = LegacyID
|
ID = LegacyID,
|
||||||
|
Available = true
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user