Fix difficulty calculation using the pre-mod catcher size

This commit is contained in:
smoogipoo
2019-03-19 15:35:14 +09:00
parent 4031cad4f8
commit 5d9477e1e4
2 changed files with 16 additions and 1 deletions

View File

@ -23,11 +23,17 @@ namespace osu.Game.Rulesets.Catch.Difficulty
protected override int SectionLength => 750;
private readonly float halfCatchWidth;
private float halfCatchWidth;
public CatchDifficultyCalculator(Ruleset ruleset, WorkingBeatmap beatmap)
: base(ruleset, beatmap)
{
}
protected override void PreProcess(IBeatmap beatmap, Mod[] mods, double clockRate)
{
base.PreProcess(beatmap, mods, clockRate);
var catcher = new CatcherArea.Catcher(beatmap.BeatmapInfo.BaseDifficulty);
halfCatchWidth = catcher.CatchWidth * 0.5f;