Simplify condition

This commit is contained in:
smoogipoo 2020-08-21 13:13:08 +09:00
parent 855b5ba4ed
commit 6ad7a3686b

View File

@ -229,8 +229,8 @@ namespace osu.Game.Rulesets.Catch.UI
catchObjectPosition >= catcherPosition - halfCatchWidth &&
catchObjectPosition <= catcherPosition + halfCatchWidth;
// only update hyperdash state if we are catching a fruit or a droplet (and not a tiny droplet).
if (!(fruit is Fruit || fruit is Droplet) || fruit is TinyDroplet) return validCatch;
// only update hyperdash state if we are catching not catching a tiny droplet.
if (fruit is TinyDroplet) return validCatch;
if (validCatch && fruit.HyperDash)
{