1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 22:37:21 +08:00

Invert conditional for readability

This commit is contained in:
Dean Herbert 2020-07-24 10:41:09 +09:00
parent df3b91d029
commit f75f1231b7

View File

@ -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)