mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed floodfill algorithm
This commit is contained in:
parent
34221a0f1d
commit
6d745fc472
@ -78,7 +78,7 @@ fn calc_light<V: RectRasterableVol<Vox = Block> + ReadVol + Debug>(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _ in 0..20 {
|
while opens.len() > 0 {
|
||||||
let mut new_opens = HashSet::new();
|
let mut new_opens = HashSet::new();
|
||||||
for open in &opens {
|
for open in &opens {
|
||||||
let parent_l = voids[open].unwrap_or(0);
|
let parent_l = voids[open].unwrap_or(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user