mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed second render chunk counting issue
This commit is contained in:
parent
2a6a19f7ef
commit
1a4c7f46f4
@ -1989,9 +1989,11 @@ impl<V: RectRasterableVol> Terrain<V> {
|
|||||||
if *n >= chunks.len() {
|
if *n >= chunks.len() {
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
*n += 1;
|
|
||||||
let pos = focus_chunk + rpos;
|
let pos = focus_chunk + rpos;
|
||||||
Some(chunks.get(&pos).map(|c| (pos, c)))
|
Some(chunks.get(&pos).map(|c| {
|
||||||
|
*n += 1;
|
||||||
|
(pos, c)
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.filter_map(|x| x);
|
.filter_map(|x| x);
|
||||||
|
Loading…
Reference in New Issue
Block a user