1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 01:27:29 +08:00

Better annotate initial rolling counter value set

This commit is contained in:
Bartłomiej Dach 2022-03-07 23:11:20 +01:00
parent 019f4d965d
commit 643f68e844
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -147,7 +147,9 @@ namespace osu.Game.Overlays.Mods
base.LoadComplete();
current.BindValueChanged(_ => updateState(), true);
FinishTransforms(true);
multiplierCounter.StopRolling();
// required to prevent the counter initially rolling up from 0 to 1
// due to `Current.Value` having a nonstandard default value of 1.
multiplierCounter.SetCountWithoutRolling(Current.Value);
}
private void updateState()