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