mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'imbris/vdfix' into 'master'
Loosen in_vd calculation on the server so that it accepts all chunks a client would request See merge request veloren/veloren!1213
This commit is contained in:
commit
d387709ed0
@ -317,7 +317,8 @@ impl Sys {
|
||||
pos.0.xy().map(|e| e as f64).distance(
|
||||
key.map(|e| e as f64 + 0.5)
|
||||
* TerrainChunkSize::RECT_SIZE.map(|e| e as f64),
|
||||
) < (view_distance as f64 + 1.5) * TerrainChunkSize::RECT_SIZE.x as f64
|
||||
) < (view_distance as f64 - 1.0 + 2.5 * 2.0_f64.sqrt())
|
||||
* TerrainChunkSize::RECT_SIZE.x as f64
|
||||
} else {
|
||||
true
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user