From 125936bad0cb0c60f501753d811a4ed5ad5ab44f Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Sat, 18 Mar 2017 22:23:53 +0900 Subject: [PATCH] Fix double-assignment. --- osu.Game/Graphics/Cursor/MenuCursor.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osu.Game/Graphics/Cursor/MenuCursor.cs b/osu.Game/Graphics/Cursor/MenuCursor.cs index 105303de04..3d4d9d8e4e 100644 --- a/osu.Game/Graphics/Cursor/MenuCursor.cs +++ b/osu.Game/Graphics/Cursor/MenuCursor.cs @@ -24,8 +24,7 @@ namespace osu.Game.Graphics.Cursor { if (state.Mouse.HasMainButtonPressed) { - Vector2 offset = state.Mouse.Delta; - offset = state.Mouse.Position - state.Mouse.PositionMouseDown ?? state.Mouse.Delta; + Vector2 offset = state.Mouse.Position - state.Mouse.PositionMouseDown ?? state.Mouse.Delta; float degrees = (float)MathHelper.RadiansToDegrees(Math.Atan2(-offset.X, offset.Y)) + 24.3f; // Always rotate in the direction of least distance