Fix SPM counter decreasing after spinner has already been completed

This commit is contained in:
Dean Herbert 2021-03-09 16:15:44 +09:00
parent 5a6864eb78
commit 4e8bcc9265
1 changed files with 4 additions and 1 deletions

View File

@ -267,7 +267,10 @@ protected override void UpdateAfterChildren()
if (!SpmCounter.IsPresent && RotationTracker.Tracking)
SpmCounter.FadeIn(HitObject.TimeFadeIn);
SpmCounter.SetRotation(Result.RateAdjustedRotation);
// don't update after end time to avoid the rate display dropping during fade out.
// this shouldn't be limited to StartTime as it causes weirdness with the underlying calculation, which is expecting updates during that period.
if (Time.Current <= HitObject.EndTime)
SpmCounter.SetRotation(Result.RateAdjustedRotation);
updateBonusScore();
}