Skip to content

Commit 64a45cc

Browse files
style: fix 13 InspectCode warnings (blank lines + statement formatting)
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/c05408ff-2261-4192-be17-427dbac05881 Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent d2d87d2 commit 64a45cc

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

osu.Game.Rulesets.Osu/Difficulty/Evaluators/SpeedEvaluator.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,14 @@ public static double EvaluateDifficultyOf(DifficultyHitObject current, IReadOnly
6363
distanceBonus *= Math.Sqrt(osuCurrObj.SmallCircleBonus);
6464

6565
bool hasAutopilot = false;
66+
6667
for (int i = 0; i < mods.Count; i++)
6768
{
68-
if (mods[i] is OsuModAutopilot) { hasAutopilot = true; break; }
69+
if (mods[i] is OsuModAutopilot)
70+
{
71+
hasAutopilot = true;
72+
break;
73+
}
6974
}
7075

7176
if (hasAutopilot)

osu.Game.Rulesets.Osu/Difficulty/OsuDifficultyCalculator.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,14 @@ protected override Skill[] CreateSkills(IBeatmap beatmap, Mod[] mods, double clo
228228
};
229229

230230
bool hasFlashlight = false;
231+
231232
for (int i = 0; i < mods.Length; i++)
232233
{
233-
if (mods[i] is OsuModFlashlight) { hasFlashlight = true; break; }
234+
if (mods[i] is OsuModFlashlight)
235+
{
236+
hasFlashlight = true;
237+
break;
238+
}
234239
}
235240

236241
if (hasFlashlight)

osu.Game.Rulesets.Osu/Replays/OsuAutoGenerator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,12 @@ private void addHitObjectClickFrames(OsuHitObject h, Vector2 startPosition, floa
397397
private static bool actionsEqual(List<OsuAction> a, List<OsuAction> b)
398398
{
399399
if (a.Count != b.Count) return false;
400+
400401
for (int i = 0; i < a.Count; i++)
401402
{
402403
if (a[i] != b[i]) return false;
403404
}
405+
404406
return true;
405407
}
406408

0 commit comments

Comments
 (0)