1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-02 23:41:00 +08:00

Fix ppy#32064: Fixed Formatting.

This commit is contained in:
Nuno Pelagio
2025-05-19 20:00:24 +01:00
Unverified
parent 7af17a5d94
commit dc86b77f80
@@ -127,8 +127,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
private void applyRotation(bool shouldSnap)
{
float newRotation = shouldSnap ? snap(rawCumulativeRotation, snap_step) : MathF.Round(rawCumulativeRotation);
newRotation = (newRotation + 360 + 180) % 360 - 180;
if (MathF.Abs(newRotation) == 180)
newRotation = ((newRotation + 360 + 180) % 360) - 180;
if (MathF.Abs(newRotation) == 180)
newRotation = 180;
cumulativeRotation.Value = newRotation;