mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Fix map would always be converted to itself when actually converting to a different game mode.
This commit is contained in:
@ -87,9 +87,9 @@ namespace osu.Game.Beatmaps
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of HitObject the new Beatmap should contain.</typeparam>
|
||||
/// <returns></returns>
|
||||
public Beatmap<T> ConvertTo<T>() where T : HitObject
|
||||
public Beatmap<T> ConvertTo<T>(PlayMode playMode) where T : HitObject
|
||||
{
|
||||
return Ruleset.GetRuleset(BeatmapInfo.Mode).CreateBeatmapConverter<T>().Convert(this);
|
||||
return Ruleset.GetRuleset(playMode).CreateBeatmapConverter<T>().Convert(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
protected DifficultyCalculator(Beatmap beatmap)
|
||||
{
|
||||
Objects = beatmap.ConvertTo<T>().HitObjects;
|
||||
Objects = beatmap.ConvertTo<T>(PlayMode).HitObjects;
|
||||
PreprocessHitObjects();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user