mirror of
https://github.com/ppy/osu.git
synced 2025-02-26 15:02:55 +08:00
Fix possible NaN accuracy
This commit is contained in:
parent
3386dbb243
commit
3619f7c1eb
@ -225,7 +225,8 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
if (judgement.AffectsAccuracy)
|
if (judgement.AffectsAccuracy)
|
||||||
Hits++;
|
Hits++;
|
||||||
|
|
||||||
Accuracy.Value = comboScore / rollingMaxComboScore;
|
if (rollingMaxComboScore != 0)
|
||||||
|
Accuracy.Value = comboScore / rollingMaxComboScore;
|
||||||
|
|
||||||
switch (Mode.Value)
|
switch (Mode.Value)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user