mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 05:22:54 +08:00
Fix error-level inspections.
This commit is contained in:
parent
3e4cd0dc7c
commit
ecdbcb20cf
@ -1,8 +1,6 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace osu.Game.Modes.Catch
|
namespace osu.Game.Modes.Catch
|
||||||
{
|
{
|
||||||
public class CatchModNoFail : ModNoFail
|
public class CatchModNoFail : ModNoFail
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace osu.Game.Modes.Taiko
|
namespace osu.Game.Modes.Taiko
|
||||||
{
|
{
|
||||||
public class TaikoModNoFail : ModNoFail
|
public class TaikoModNoFail : ModNoFail
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Modes
|
namespace osu.Game.Modes
|
||||||
|
@ -9,7 +9,6 @@ using OpenTK.Input;
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Audio;
|
using osu.Framework.Audio;
|
||||||
using osu.Framework.Audio.Sample;
|
using osu.Framework.Audio.Sample;
|
||||||
using osu.Framework.Extensions;
|
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
@ -111,14 +110,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
if (mod == value) return;
|
if (mod == value) return;
|
||||||
mod = value;
|
mod = value;
|
||||||
|
|
||||||
if (mod is MultiMod)
|
Mods = (mod as MultiMod)?.Mods ?? new[] { mod };
|
||||||
{
|
|
||||||
Mods = ((MultiMod)mod).Mods;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Mods = new[] { mod };
|
|
||||||
}
|
|
||||||
|
|
||||||
createIcons();
|
createIcons();
|
||||||
if (Mods.Length > 0)
|
if (Mods.Length > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user