mirror of https://github.com/ppy/osu
Actually cast to int
This commit is contained in:
parent
9dd2c2a904
commit
d850e34003
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue