mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed diffuse_field
This commit is contained in:
parent
393ac4610c
commit
8cb48804c2
@ -56,7 +56,7 @@ fn truncate(x: u64) -> u32 {
|
||||
|
||||
pub fn diffused_field(seed: u32, amount: u32) -> Vec<u32> {
|
||||
let mut field = Vec::new();
|
||||
for i in 0..amount {
|
||||
for i in 0..=amount {
|
||||
let n = truncate(diffuse(initial_expand(seed + i)));
|
||||
field.push(n);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user