From 6ea6130fee93d5688c728eff59ca6683334979b8 Mon Sep 17 00:00:00 2001 From: Thomas Tan Date: Sat, 29 Apr 2017 02:41:20 +0800 Subject: [PATCH] CodeFactor fixes --- osu.Game.Rulesets.Osu/Replays/OsuAutoGenerator.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/osu.Game.Rulesets.Osu/Replays/OsuAutoGenerator.cs b/osu.Game.Rulesets.Osu/Replays/OsuAutoGenerator.cs index 808e3654bb..f8365bf9ab 100644 --- a/osu.Game.Rulesets.Osu/Replays/OsuAutoGenerator.cs +++ b/osu.Game.Rulesets.Osu/Replays/OsuAutoGenerator.cs @@ -68,7 +68,6 @@ namespace osu.Game.Rulesets.Osu.Replays AddFrameToReplay(new ReplayFrame(Beatmap.HitObjects[0].StartTime - 1500, 256, 500, ReplayButtonState.None)); AddFrameToReplay(new ReplayFrame(Beatmap.HitObjects[0].StartTime - 1000, 256, 192, ReplayButtonState.None)); - for (int i = 0; i < Beatmap.HitObjects.Count; i++) { OsuHitObject h = Beatmap.HitObjects[i]; @@ -130,7 +129,6 @@ namespace osu.Game.Rulesets.Osu.Replays } } - // Do some nice easing for cursor movements if (Frames.Count > 0) { @@ -256,7 +254,7 @@ namespace osu.Game.Rulesets.Osu.Replays // If a button is already held, then we simply alternate if (previousButton != ReplayButtonState.None) { - Debug.Assert(previousButton != (ReplayButtonState.Left1 | ReplayButtonState.Right1)); + Debug.Assert(previousButton != (ReplayButtonState.Left1 | ReplayButtonState.Right1), "Previous button state was not Left1 nor Right1 despite only using those two states."); // Force alternation if we have the same button. Otherwise we can just keep the naturally to us assigned button. if (previousButton == button)