diff --git a/voxygen/src/scene/lod.rs b/voxygen/src/scene/lod.rs index 7ba32b2f72..f241d8fa0d 100644 --- a/voxygen/src/scene/lod.rs +++ b/voxygen/src/scene/lod.rs @@ -42,7 +42,7 @@ impl Lod { pub fn set_detail(&mut self, detail: u32) { // Make sure the recorded detail is even. - self.data.tgt_detail = detail.max(100).min(2500) - detail % 2; + self.data.tgt_detail = (detail - detail % 2).max(100).min(2500); } pub fn maintain(&mut self, renderer: &mut Renderer) {