Skip to content

Commit

Permalink
currentSpins -> completedFullSpins
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Sep 5, 2023
1 parent d614e74 commit 912c8b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions osu.Game.Rulesets.Osu/Objects/Drawables/DrawableSpinner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ protected override void UpdateAfterChildren()

private static readonly int score_per_tick = new SpinnerBonusTick.OsuSpinnerBonusTickJudgement().MaxNumericResult;

private int currentSpins;
private int completedFullSpins;

private void updateBonusScore()
{
Expand All @@ -295,14 +295,14 @@ private void updateBonusScore()

int spins = (int)(Result.RateAdjustedRotation / 360);

if (spins < currentSpins)
if (spins < completedFullSpins)
{
// rewinding, silently handle
currentSpins = spins;
completedFullSpins = spins;
return;
}

while (currentSpins != spins)
while (completedFullSpins != spins)
{
var tick = ticks.FirstOrDefault(t => !t.Result.HasResult);

Expand All @@ -315,7 +315,7 @@ private void updateBonusScore()
gainedBonus.Value = score_per_tick * (spins - HitObject.SpinsRequired);
}

currentSpins++;
completedFullSpins++;
}
}
}
Expand Down

0 comments on commit 912c8b0

Please sign in to comment.