mirror of https://github.com/ppy/osu
`wholeSpins` -> `currentSpins`
This commit is contained in:
parent
d70df88fa0
commit
e77581f641
|
@ -286,7 +286,7 @@ protected override void UpdateAfterChildren()
|
|||
|
||||
private static readonly int score_per_tick = new SpinnerBonusTick.OsuSpinnerBonusTickJudgement().MaxNumericResult;
|
||||
|
||||
private int wholeSpins;
|
||||
private int currentSpins;
|
||||
|
||||
private void updateBonusScore()
|
||||
{
|
||||
|
@ -295,14 +295,14 @@ private void updateBonusScore()
|
|||
|
||||
int spins = (int)(Result.RateAdjustedRotation / 360);
|
||||
|
||||
if (spins < wholeSpins)
|
||||
if (spins < currentSpins)
|
||||
{
|
||||
// rewinding, silently handle
|
||||
wholeSpins = spins;
|
||||
currentSpins = spins;
|
||||
return;
|
||||
}
|
||||
|
||||
while (wholeSpins != spins)
|
||||
while (currentSpins != spins)
|
||||
{
|
||||
var tick = ticks.FirstOrDefault(t => !t.Result.HasResult);
|
||||
|
||||
|
@ -315,7 +315,7 @@ private void updateBonusScore()
|
|||
gainedBonus.Value = score_per_tick * (spins - HitObject.SpinsRequired);
|
||||
}
|
||||
|
||||
wholeSpins++;
|
||||
currentSpins++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue