Fix formatting ;_;

This commit is contained in:
gabixdev 2017-09-21 22:11:35 +02:00
parent 387705b2b6
commit 8438ea1267
2 changed files with 2 additions and 7 deletions

View File

@ -21,7 +21,6 @@ namespace osu.Game.Graphics.Cursor
protected override Drawable CreateCursor() => new Cursor(); protected override Drawable CreateCursor() => new Cursor();
private Bindable<bool> cursorRotate; private Bindable<bool> cursorRotate;
private bool dragging; private bool dragging;
private bool startRotation; private bool startRotation;
@ -43,10 +42,8 @@ namespace osu.Game.Graphics.Cursor
// Always rotate in the direction of least distance // Always rotate in the direction of least distance
float diff = (degrees - ActiveCursor.Rotation) % 360; float diff = (degrees - ActiveCursor.Rotation) % 360;
if (diff < -180) if (diff < -180) diff += 360;
diff += 360; if (diff > 180) diff -= 360;
if (diff > 180)
diff -= 360;
degrees = ActiveCursor.Rotation + diff; degrees = ActiveCursor.Rotation + diff;
ActiveCursor.RotateTo(degrees, 600, Easing.OutQuint); ActiveCursor.RotateTo(degrees, 600, Easing.OutQuint);
@ -116,7 +113,6 @@ namespace osu.Game.Graphics.Cursor
{ {
private Container cursorContainer; private Container cursorContainer;
private Bindable<double> cursorScale; private Bindable<double> cursorScale;
private const float base_scale = 0.15f; private const float base_scale = 0.15f;
public Sprite AdditiveLayer; public Sprite AdditiveLayer;

View File

@ -3,7 +3,6 @@
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Game.Configuration; using osu.Game.Configuration;
namespace osu.Game.Overlays.Settings.Sections.Graphics namespace osu.Game.Overlays.Settings.Sections.Graphics
{ {
public class DetailSettings : SettingsSubsection public class DetailSettings : SettingsSubsection