1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

fix codefactor

This commit is contained in:
OliBomby 2024-06-19 21:10:30 +02:00
parent d5397a2139
commit f2bd6fac47

View File

@ -199,13 +199,13 @@ namespace osu.Game.Rulesets.Osu.Edit
switch (v.NewValue)
{
case PositionSnapGridType.Square:
GridLinesRotation.Value = (GridLinesRotation.Value + 405) % 90 - 45;
GridLinesRotation.Value = ((GridLinesRotation.Value + 405) % 90) - 45;
GridLinesRotation.MinValue = -45;
GridLinesRotation.MaxValue = 45;
break;
case PositionSnapGridType.Triangle:
GridLinesRotation.Value = (GridLinesRotation.Value + 390) % 60 - 30;
GridLinesRotation.Value = ((GridLinesRotation.Value + 390) % 60) - 30;
GridLinesRotation.MinValue = -30;
GridLinesRotation.MaxValue = 30;
break;