Change all performance calculators to use int hitwindows

Has a pretty large (>6) effect on pp for some maps.
This commit is contained in:
smoogipoo
2018-05-25 20:07:14 +09:00
parent 765a50d007
commit 215cc9fba7
3 changed files with 4 additions and 1 deletions

View File

@ -94,7 +94,8 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
private double computeAccuracyValue()
{
double hitWindowGreat = Beatmap.HitObjects.First().HitWindows.Great / 2 / TimeRate;
// Todo: This int cast is temporary to achieve 1:1 results with osu!stable, and should be remoevd in the future
double hitWindowGreat = (int)(Beatmap.HitObjects.First().HitWindows.Great / 2) / TimeRate;
if (hitWindowGreat <= 0)
return 0;