mirror of
https://gitlab.com/veloren/veloren
synced 2026-08-16 16:26:07 -04:00
Fixing LOD grid, for real.
This commit is contained in:
parent
a166ae0360
commit
c32b337a46
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue