1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 20:32:55 +08:00

Fix weird RollingCounter behaviour.

This commit is contained in:
Dean Herbert 2017-04-11 13:45:16 +09:00
parent 4aadd3a8f8
commit f8c6ce15c3
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -108,8 +108,6 @@ namespace osu.Game.Graphics.UserInterface
{ {
base.LoadComplete(); base.LoadComplete();
Flush(false, TransformType);
DisplayedCountSpriteText.Text = FormatCount(Current); DisplayedCountSpriteText.Text = FormatCount(Current);
DisplayedCountSpriteText.Anchor = Anchor; DisplayedCountSpriteText.Anchor = Anchor;
DisplayedCountSpriteText.Origin = Origin; DisplayedCountSpriteText.Origin = Origin;
@ -205,8 +203,8 @@ namespace osu.Game.Graphics.UserInterface
? GetProportionalDuration(currentValue, newValue) ? GetProportionalDuration(currentValue, newValue)
: RollingDuration; : RollingDuration;
transform.StartTime = Time.Current; transform.StartTime = TransformStartTime;
transform.EndTime = Time.Current + rollingTotalDuration; transform.EndTime = TransformStartTime + rollingTotalDuration;
transform.StartValue = currentValue; transform.StartValue = currentValue;
transform.EndValue = newValue; transform.EndValue = newValue;
transform.Easing = RollingEasing; transform.Easing = RollingEasing;