From dc86b77f8077015bf62ee148585da3193f81cacf Mon Sep 17 00:00:00 2001 From: Nuno Pelagio Date: Mon, 19 May 2025 20:00:24 +0100 Subject: [PATCH] Fix ppy#32064: Fixed Formatting. --- .../Edit/Compose/Components/SelectionBoxRotationHandle.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/Edit/Compose/Components/SelectionBoxRotationHandle.cs b/osu.Game/Screens/Edit/Compose/Components/SelectionBoxRotationHandle.cs index 3a1fcecc24..9b679a1344 100644 --- a/osu.Game/Screens/Edit/Compose/Components/SelectionBoxRotationHandle.cs +++ b/osu.Game/Screens/Edit/Compose/Components/SelectionBoxRotationHandle.cs @@ -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;