1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

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 &&
catchObjectPosition <= catcherPosition + halfCatchWidth; catchObjectPosition <= catcherPosition + halfCatchWidth;
// only update hyperdash state if we are catching a fruit or a droplet (and not a tiny droplet). // only update hyperdash state if we are catching not catching a tiny droplet.
if (!(fruit is Fruit || fruit is Droplet) || fruit is TinyDroplet) return validCatch; if (fruit is TinyDroplet) return validCatch;
if (validCatch && fruit.HyperDash) if (validCatch && fruit.HyperDash)
{ {