This commit is contained in:
Joshua Barretto 2019-07-04 18:13:29 +01:00
parent 51ad1f1995
commit 0c9843999b

View File

@ -9,8 +9,8 @@ use common::{
volumes::vol_map_2d::VolMap2dErr, volumes::vol_map_2d::VolMap2dErr,
}; };
use frustum_query::frustum::Frustum; use frustum_query::frustum::Frustum;
use std::{i32, ops::Mul, sync::mpsc, time::Duration};
use fxhash::FxHashMap; use fxhash::FxHashMap;
use std::{i32, ops::Mul, sync::mpsc, time::Duration};
use vek::*; use vek::*;
struct TerrainChunk { struct TerrainChunk {
@ -143,7 +143,8 @@ impl Terrain {
self.mesh_todo.remove(pos); self.mesh_todo.remove(pos);
} }
for todo in self.mesh_todo for todo in self
.mesh_todo
.values_mut() .values_mut()
.filter(|todo| { .filter(|todo| {
todo.active_worker todo.active_worker