From 7ebebb2942a1eb941bfb6f487f705a3c3c642cf2 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 6 Mar 2024 15:42:48 +0000 Subject: [PATCH] Fix out by one in infinite scroll --- agb/src/display/tiled/infinite_scrolled_map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/display/tiled/infinite_scrolled_map.rs b/agb/src/display/tiled/infinite_scrolled_map.rs index 876d3abe..4e85ad3d 100644 --- a/agb/src/display/tiled/infinite_scrolled_map.rs +++ b/agb/src/display/tiled/infinite_scrolled_map.rs @@ -330,7 +330,7 @@ impl<'a> InfiniteScrolledMap<'a> { new_tile_x } else { // moving to the right, so need to update the right most position - new_tile_x + 30 // TODO is this correct? + new_tile_x + 31 // TODO is this correct? }; Rect::new( @@ -355,7 +355,7 @@ impl<'a> InfiniteScrolledMap<'a> { new_tile_y } else { // moving down so need to update the bottom - new_tile_y + 20 // TODO is this correct? + new_tile_y + 21 // TODO is this correct? }; Rect::new(