This should always be 32

This commit is contained in:
Gwilym Kuiper 2022-05-03 22:55:50 +01:00
parent 39b37e7506
commit 4d3d2acd3b

View file

@ -151,8 +151,8 @@ impl<'a> InfiniteScrolledMap<'a> {
// calculate which direction we need to update // calculate which direction we need to update
let direction = difference.y.signum(); let direction = difference.y.signum();
// either need to update width - 2 or width - 1 tiles depending on whether the x coordinate is a perfect multiple // either need to update 30 or 31 tiles depending on whether the x coordinate is a perfect multiple
let x_tiles_to_update: i32 = size.width() as i32; let x_tiles_to_update: i32 = 32;
let line_to_update = if direction < 0 { let line_to_update = if direction < 0 {
// moving up so need to update the top // moving up so need to update the top