mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Simplify condition
This commit is contained in:
parent
855b5ba4ed
commit
6ad7a3686b
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user