aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tafl/tafl.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tafl/tafl.odin b/src/tafl/tafl.odin
index 50c68c5..21de20f 100644
--- a/src/tafl/tafl.odin
+++ b/src/tafl/tafl.odin
@@ -490,7 +490,7 @@ box_clamp :: proc(parent, child : Box) -> (output : Box) {
}
collision_check_coords :: proc(point : [2]int, x, y, w, h : int) -> bool {
- return x <= point.x && point.x <= (x+w) && y <= point.y && point.y <= (y+h)
+ return x <= point.x && point.x < (x+w) && y <= point.y && point.y < (y+h)
}
collision_check_tafl :: proc(point : [2]int, tafl : Tafl) -> bool {
return collision_check_coords(point, tafl.x, tafl.y, tafl.width, tafl.height)