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

Invert strangely negated condition

This commit is contained in:
Bartłomiej Dach 2021-07-10 11:23:38 +02:00
parent 494089e402
commit c5011865fc

View File

@ -75,7 +75,7 @@ namespace osu.Game.Rulesets.Catch.Edit
float upperBound = CatchPlayfield.WIDTH - maxX;
// The inequality may be unsatisfiable if the objects were already out of bounds.
// In that case, don't move objects at all.
if (!(lowerBound <= upperBound))
if (lowerBound > upperBound)
return 0;
return Math.Clamp(deltaX, lowerBound, upperBound);