mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Invert conditional for readability
This commit is contained in:
@ -58,11 +58,12 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
|
|
||||||
foreach (var d in inputManager.HoveredDrawables)
|
foreach (var d in inputManager.HoveredDrawables)
|
||||||
{
|
{
|
||||||
if (!(d is IProvideCursor p) || !p.ProvidingUserCursor) continue;
|
if (d is IProvideCursor p && p.ProvidingUserCursor)
|
||||||
|
{
|
||||||
newTarget = p;
|
newTarget = p;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (currentTarget == newTarget)
|
if (currentTarget == newTarget)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user