mirror of
https://github.com/ppy/osu
synced 2024-12-13 02:17:32 +00:00
Reduce casting
This commit is contained in:
parent
f9e228d6bf
commit
afb67726f0
@ -5,7 +5,6 @@ using System.Diagnostics;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Colour;
|
||||
using osu.Framework.Input.Bindings;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Rulesets.Mania.Configuration;
|
||||
@ -15,6 +14,7 @@ using osu.Game.Rulesets.Scoring;
|
||||
using osu.Game.Rulesets.UI.Scrolling;
|
||||
using osu.Game.Screens.Edit;
|
||||
using osu.Game.Skinning;
|
||||
using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
||||
{
|
||||
@ -104,8 +104,8 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
||||
private void updateSnapColour()
|
||||
{
|
||||
Colour = configColourCodedNotes.Value
|
||||
? (ColourInfo)BindableBeatDivisor.GetColourFor(snap.Value, colours)
|
||||
: (ColourInfo)Colour4.White;
|
||||
? BindableBeatDivisor.GetColourFor(snap.Value, colours)
|
||||
: Color4.White;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user