1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 11:43:21 +08:00

currentSpins -> completedFullSpins

This commit is contained in:
Salman Ahmed 2023-09-06 00:10:41 +03:00
parent d614e745b8
commit 912c8b0901

View File

@ -286,7 +286,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
private static readonly int score_per_tick = new SpinnerBonusTick.OsuSpinnerBonusTickJudgement().MaxNumericResult; private static readonly int score_per_tick = new SpinnerBonusTick.OsuSpinnerBonusTickJudgement().MaxNumericResult;
private int currentSpins; private int completedFullSpins;
private void updateBonusScore() private void updateBonusScore()
{ {
@ -295,14 +295,14 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
int spins = (int)(Result.RateAdjustedRotation / 360); int spins = (int)(Result.RateAdjustedRotation / 360);
if (spins < currentSpins) if (spins < completedFullSpins)
{ {
// rewinding, silently handle // rewinding, silently handle
currentSpins = spins; completedFullSpins = spins;
return; return;
} }
while (currentSpins != spins) while (completedFullSpins != spins)
{ {
var tick = ticks.FirstOrDefault(t => !t.Result.HasResult); var tick = ticks.FirstOrDefault(t => !t.Result.HasResult);
@ -315,7 +315,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
gainedBonus.Value = score_per_tick * (spins - HitObject.SpinsRequired); gainedBonus.Value = score_per_tick * (spins - HitObject.SpinsRequired);
} }
currentSpins++; completedFullSpins++;
} }
} }
} }