mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 09:47:24 +08:00
Fix NaN values when stamina difficulty is 0
This commit is contained in:
parent
9766d51559
commit
3e7fcc3c24
@ -86,8 +86,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
|
||||
double rhythmRating = rhythm.DifficultyValue() * rhythm_skill_multiplier;
|
||||
double staminaRating = stamina.DifficultyValue() * stamina_skill_multiplier;
|
||||
double monoStaminaRating = singleColourStamina.DifficultyValue() * stamina_skill_multiplier;
|
||||
|
||||
double monoStaminaFactor = Math.Pow(monoStaminaRating / staminaRating, 5);
|
||||
double monoStaminaFactor = staminaRating == 0 ? 1 : Math.Pow(monoStaminaRating / staminaRating, 5);
|
||||
|
||||
double combinedRating = combinedDifficultyValue(rhythm, colour, stamina);
|
||||
double starRating = rescale(combinedRating * 1.4);
|
||||
|
Loading…
Reference in New Issue
Block a user