mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 21:42:55 +08:00
currentSpins
-> completedFullSpins
This commit is contained in:
parent
d614e745b8
commit
912c8b0901
@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user