mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
use column sample for tree for crowding value
This commit is contained in:
parent
fabc0dc37c
commit
7cb8d12829
@ -87,7 +87,6 @@ pub fn apply_trees_to(
|
||||
canvas.foreach_col(|canvas, wpos2d, col| {
|
||||
let trees = tree_cache.get(wpos2d, |wpos, seed| {
|
||||
let scale = 1.0;
|
||||
let crowding = col.tree_density;
|
||||
let inhabited = false;
|
||||
let forest_kind = *info
|
||||
.chunks()
|
||||
@ -97,6 +96,8 @@ pub fn apply_trees_to(
|
||||
|
||||
let col = ColumnGen::new(info.chunks()).get((wpos, info.index(), calendar))?;
|
||||
|
||||
let crowding = col.tree_density;
|
||||
|
||||
if !tree_valid_at(wpos, &col, Some(info), seed) {
|
||||
return None;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user