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

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()