mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 12:25:20 +08:00
fix codefactor
This commit is contained in:
parent
d5397a2139
commit
f2bd6fac47
@ -199,13 +199,13 @@ namespace osu.Game.Rulesets.Osu.Edit
|
|||||||
switch (v.NewValue)
|
switch (v.NewValue)
|
||||||
{
|
{
|
||||||
case PositionSnapGridType.Square:
|
case PositionSnapGridType.Square:
|
||||||
GridLinesRotation.Value = (GridLinesRotation.Value + 405) % 90 - 45;
|
GridLinesRotation.Value = ((GridLinesRotation.Value + 405) % 90) - 45;
|
||||||
GridLinesRotation.MinValue = -45;
|
GridLinesRotation.MinValue = -45;
|
||||||
GridLinesRotation.MaxValue = 45;
|
GridLinesRotation.MaxValue = 45;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PositionSnapGridType.Triangle:
|
case PositionSnapGridType.Triangle:
|
||||||
GridLinesRotation.Value = (GridLinesRotation.Value + 390) % 60 - 30;
|
GridLinesRotation.Value = ((GridLinesRotation.Value + 390) % 60) - 30;
|
||||||
GridLinesRotation.MinValue = -30;
|
GridLinesRotation.MinValue = -30;
|
||||||
GridLinesRotation.MaxValue = 30;
|
GridLinesRotation.MaxValue = 30;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user