mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixing LOD grid, for real.
This commit is contained in:
parent
a166ae0360
commit
c32b337a46
@ -42,7 +42,7 @@ impl Lod {
|
|||||||
|
|
||||||
pub fn set_detail(&mut self, detail: u32) {
|
pub fn set_detail(&mut self, detail: u32) {
|
||||||
// Make sure the recorded detail is even.
|
// 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) {
|
pub fn maintain(&mut self, renderer: &mut Renderer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user