1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 11:02:57 +08:00

Fix slider repeat arrow not updating rotation immediately while paused in editor

A bit of a local solution, but not sure there's a better way to handle
this.

Closes #13342.
This commit is contained in:
Dean Herbert 2021-06-07 15:58:41 +09:00
parent a17bbe8393
commit 277eb9fa6e

View File

@ -152,7 +152,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
while (Math.Abs(aimRotation - Arrow.Rotation) > 180)
aimRotation += aimRotation < Arrow.Rotation ? 360 : -360;
if (!hasRotation)
// The clock may be paused in a scenario like the editor.
if (!hasRotation || !Clock.IsRunning)
{
Arrow.Rotation = aimRotation;
hasRotation = true;