mirror of
https://github.com/ppy/osu.git
synced 2026-06-05 01:04:16 +08: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