mirror of
https://github.com/osukey/osukey.git
synced 2025-05-16 19:17:18 +09:00
Fix off-by-one error in isQuadInBounds
This commit is contained in:
parent
877e19421b
commit
def0e5c42e
@ -242,8 +242,8 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
|
||||
private (bool X, bool Y) isQuadInBounds(Quad quad)
|
||||
{
|
||||
bool xInBounds = (quad.TopLeft.X >= 0) && (quad.BottomRight.X < DrawWidth);
|
||||
bool yInBounds = (quad.TopLeft.Y >= 0) && (quad.BottomRight.Y < DrawHeight);
|
||||
bool xInBounds = (quad.TopLeft.X >= 0) && (quad.BottomRight.X <= DrawWidth);
|
||||
bool yInBounds = (quad.TopLeft.Y >= 0) && (quad.BottomRight.Y <= DrawHeight);
|
||||
|
||||
return (xInBounds, yInBounds);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user