Compare commits
1 Commits
b784e2fed0
...
411a6222a1
| Author | SHA1 | Date | |
|---|---|---|---|
| 411a6222a1 |
@@ -63,14 +63,15 @@ where
|
||||
for coordinate in distinct {
|
||||
//trace!("{:?} {:?} {:?} {:?}", dimension, coordinate, cell, count);
|
||||
|
||||
cells[cell].push(coordinate);
|
||||
count += 1;
|
||||
|
||||
// Check first, otherwise we might add a cell which will stay empty.
|
||||
if count == max_offset {
|
||||
count = 0;
|
||||
cell += 1;
|
||||
cells.push(Vec::with_capacity(max_offset));
|
||||
}
|
||||
|
||||
cells[cell].push(coordinate);
|
||||
count += 1;
|
||||
}
|
||||
|
||||
info!(
|
||||
|
||||
Reference in New Issue
Block a user