This commit is contained in:
Linus Probert 2018-08-11 20:16:23 +02:00
parent b4a6c4b46f
commit 69e5ff99e0
1 changed files with 2 additions and 2 deletions

View File

@ -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;