Actually cast to int

This commit is contained in:
smoogipoo 2018-05-26 09:25:16 +09:00
parent 9dd2c2a904
commit d850e34003
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -62,7 +62,7 @@ public override double Calculate(Dictionary<string, double> categoryRatings = nu
return 0;
// Todo: These int casts are temporary to achieve 1:1 results with osu!stable, and should be remoevd in the future
double hitWindowGreat = Beatmap.HitObjects.First().HitWindows.Great / 2 / TimeRate;
double hitWindowGreat = (int)(Beatmap.HitObjects.First().HitWindows.Great / 2) / TimeRate;
double preEmpt = (int)BeatmapDifficulty.DifficultyRange(Beatmap.BeatmapInfo.BaseDifficulty.ApproachRate, 1800, 1200, 450) / TimeRate;
realApproachRate = preEmpt > 1200 ? (1800 - preEmpt) / 120 : (1200 - preEmpt) / 150 + 5;