1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-18 04:33:22 +08:00

Return null for greatprobability >= 1

This commit is contained in:
Natelytle 2022-10-28 23:23:50 -04:00
parent 01c79d8ef2
commit 7403c1cc86

View File

@ -120,7 +120,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
double greatProbability = 1 - (countOk + countMiss + 1.0) / (totalHits + 1.0); double greatProbability = 1 - (countOk + countMiss + 1.0) / (totalHits + 1.0);
if (greatProbability <= 0) if (greatProbability <= 0 || greatProbability >= 1)
{ {
return null; return null;
} }