Update heightmap-generator.js (#389)

move 'range = query.slice()' out of 'range.forEach'
This commit is contained in:
janphelee 2020-01-01 19:42:20 +08:00 committed by Azgaar
parent 6fbb1a2944
commit 2f14d7ac46

View file

@ -478,9 +478,9 @@
cells.h[e] **= exp;
if (cells.h[e] > 100) cells.h[e] = 5;
});
range = query.slice();
});
range = query.slice();
width--;
}
}