mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00: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;
|
||||
|
||||
// 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user