1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Add newline before brace

This commit is contained in:
MBmasher 2022-08-12 14:08:32 +10:00
parent 037f56077b
commit f70588a423

View File

@ -83,7 +83,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Evaluators
// Nerf patterns with angles that are commonly used in grid maps.
// 0 deg, 60 deg, 120 deg and 180 deg are commonly used in hexgrid maps.
// 0 deg, 45 deg, 90 deg, 135 deg and 180 deg are commonly used in squaregrid maps.
if (osuCurrent.Angle != null) {
if (osuCurrent.Angle != null)
{
double hexgrid_multiplier = 1.0 - Math.Pow(Math.Cos((180 / 60.0) * (double)(osuCurrent.Angle)), 20.0);
double squaregrid_multiplier = 1.0 - Math.Pow(Math.Cos((180 / 45.0) * (double)(osuCurrent.Angle)), 20.0);
result *= (1.0 - min_grid_multiplier) * hexgrid_multiplier * squaregrid_multiplier + min_grid_multiplier;