mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 14:02:55 +08:00
Fix double-assignment.
This commit is contained in:
parent
87622f9349
commit
125936bad0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user