diff --git a/src/world/tiles/tilemap_chunk.rs b/src/world/tiles/tilemap_chunk.rs index 3fc4159..b9ce5a1 100644 --- a/src/world/tiles/tilemap_chunk.rs +++ b/src/world/tiles/tilemap_chunk.rs @@ -447,7 +447,7 @@ pub fn on_camera_z_changed( let now = Instant::now(); - let z_min = (new_camera_z.min(old_camera_z) - 8).max(0); + let z_min = new_camera_z.min(old_camera_z) - 8; let z_max = new_camera_z.max(old_camera_z); let mut new_keys: Vec = Vec::new();