Skip to content

Commit

Permalink
Fixes #35
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidityC committed Aug 11, 2018
1 parent b4a6c4b commit 69e5ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/position.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 69e5ff9

Please sign in to comment.