mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
This should always be 32
This commit is contained in:
parent
39b37e7506
commit
4d3d2acd3b
|
@ -151,8 +151,8 @@ impl<'a> InfiniteScrolledMap<'a> {
|
|||
// calculate which direction we need to update
|
||||
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
|
||||
let x_tiles_to_update: i32 = size.width() as i32;
|
||||
// either need to update 30 or 31 tiles depending on whether the x coordinate is a perfect multiple
|
||||
let x_tiles_to_update: i32 = 32;
|
||||
|
||||
let line_to_update = if direction < 0 {
|
||||
// moving up so need to update the top
|
||||
|
|
Loading…
Reference in a new issue