`wholeSpins` -> `currentSpins`

This commit is contained in:
Salman Ahmed 2023-08-27 01:25:50 +03:00
parent d70df88fa0
commit e77581f641
1 changed files with 5 additions and 5 deletions

View File

@ -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++;
}
}
}