From c32b337a46e10d9de473d178a94a3ccd61c39bb3 Mon Sep 17 00:00:00 2001 From: Joshua Yanovski Date: Mon, 17 Aug 2020 05:52:04 +0200 Subject: [PATCH] Fixing LOD grid, for real. --- voxygen/src/scene/lod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {