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:
parent
494089e402
commit
c5011865fc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user