Skip to content

Commit

Permalink
Fix extra cuboid downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
j6k4m8 committed Jul 31, 2020
1 parent cf0e4a7 commit 909afe3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/data_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,9 @@ pub fn get_cuboids_and_indices(
z: coords_stop.z / cuboid_size.z,
};

for cuboid_index_x in start_cuboid.x..=stop_cuboid.x {
for cuboid_index_y in start_cuboid.y..=stop_cuboid.y {
for cuboid_index_z in start_cuboid.z..=stop_cuboid.z {
// if overflow { cuboid_size } else { size % cuboid_size }

for cuboid_index_x in start_cuboid.x..stop_cuboid.x {
for cuboid_index_y in start_cuboid.y..stop_cuboid.y {
for cuboid_index_z in start_cuboid.z..stop_cuboid.z {
// TODO: This entire block is hideous.
let start_coords = Vector3 {
x: if coords_start.x <= cuboid_size.x * cuboid_index_x {
Expand Down

0 comments on commit 909afe3

Please sign in to comment.