Fix bonusScore being stored locally instead of incrementally changing

This commit is contained in:
smoogipoo 2017-11-02 19:31:30 +09:00
parent 012a81a52e
commit f219b7f9fb

View File

@ -174,6 +174,7 @@ namespace osu.Game.Rulesets.Scoring
private double maxBaseScore; private double maxBaseScore;
private double rollingMaxBaseScore; private double rollingMaxBaseScore;
private double baseScore; private double baseScore;
private double bonusScore;
protected ScoreProcessor() protected ScoreProcessor()
{ {
@ -219,7 +220,6 @@ namespace osu.Game.Rulesets.Scoring
protected virtual void OnNewJudgement(Judgement judgement) protected virtual void OnNewJudgement(Judgement judgement)
{ {
double bonusScore = 0;
if (judgement.AffectsCombo) if (judgement.AffectsCombo)
{ {
@ -271,6 +271,7 @@ namespace osu.Game.Rulesets.Scoring
Hits = 0; Hits = 0;
baseScore = 0; baseScore = 0;
rollingMaxBaseScore = 0; rollingMaxBaseScore = 0;
bonusScore = 0;
} }
} }