From 69e5ff99e06a7763a2829a18221571098ec014dd Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Sat, 11 Aug 2018 20:16:23 +0200 Subject: [PATCH] Fixes #35 --- src/position.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/position.c b/src/position.c index 3bde442..a851a8e 100644 --- a/src/position.c +++ b/src/position.c @@ -82,11 +82,11 @@ position_in_room(Position *pos, Position *roomPos) if (pos->x < room_x_px) return false; - else if (pos->x > room_x_px + room_px_width) + else if (pos->x >= room_x_px + room_px_width) return false; else if (pos->y < room_y_px) return false; - else if (pos->y > room_y_px + room_px_height) + else if (pos->y >= room_y_px + room_px_height) return false; return true;