1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 05:12:54 +08:00

Fix spinners showing very weird numbers after rewinding

Fixes #1462
This commit is contained in:
smoogipoo 2017-11-06 17:22:22 +09:00
parent 2fbd490626
commit c7426ebed8

View File

@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.Sprites;
@ -61,6 +62,10 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
public void SetRotation(float currentRotation)
{
// If we've gone back in time, it's fine to work with a fresh set of records for now
if (records.Count > 0 && Time.Current < records.Last().Time)
records.Clear();
if (records.Count > 0)
{
var record = records.Peek();