mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 22:27:46 +08:00
Invert conditional for readability
This commit is contained in:
parent
df3b91d029
commit
f75f1231b7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user