mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Prevented trees from being too sparse
This commit is contained in:
parent
4bcf9e7a63
commit
0745514174
@ -219,7 +219,8 @@ impl ProceduralTree {
|
||||
});
|
||||
|
||||
if depth < 4 {
|
||||
for _ in 0..rng.gen_range(2, 4) {
|
||||
let sub_branches = if depth == 0 { 3 } else { rng.gen_range(2, 4) };
|
||||
for _ in 0..sub_branches {
|
||||
add_branches(branches, rng, end, branch_dir, depth + 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user