Fix wrong conditional expression

This commit is contained in:
HoutarouOreki
2018-07-26 10:47:43 +02:00
parent 6e6e43e8df
commit 93dbc55738

View File

@ -82,10 +82,11 @@ namespace osu.Game.Graphics.UserInterface
protected override bool OnHover(InputState state) protected override bool OnHover(InputState state)
{ {
if (isEnabled && !IsHoverMuted) if (isEnabled)
{ {
this.FadeColour(HoverColour, 500, Easing.OutQuint); this.FadeColour(HoverColour, 500, Easing.OutQuint);
sampleHover?.Play(); if (!IsHoverMuted)
sampleHover?.Play();
} }
return base.OnHover(state); return base.OnHover(state);
} }