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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user