From b492f3d43d280eac60266f5bc5b05fe024f5b82e Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Sat, 30 Oct 2021 12:24:43 +0100 Subject: [PATCH] fix rect issue with touching --- agb/src/number.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/number.rs b/agb/src/number.rs index 8020f576..da707185 100644 --- a/agb/src/number.rs +++ b/agb/src/number.rs @@ -661,7 +661,7 @@ impl Rect { self.position.x < other.position.x + other.size.x && self.position.x + self.size.x > other.position.x && self.position.y < other.position.y + other.size.y - && self.position.y + self.size.y > self.position.y + && self.position.y + self.size.y > other.position.y } pub fn overlapping_rect(&self, other: Rect) -> Rect {