Merge branch 'master' into alpha

This commit is contained in:
Azgaar 2021-02-23 22:38:44 +03:00 committed by GitHub
commit 305d355ad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 168 additions and 1 deletions

View file

@ -637,6 +637,7 @@ function calculateVoronoi(graph, points) {
function markFeatures() {
TIME && console.time("markFeatures");
Math.random = aleaPRNG(seed); // restart Math.random() to get the same result on heightmap edit in Erase mode
const cells = grid.cells, heights = grid.cells.h;
cells.f = new Uint16Array(cells.i.length); // cell feature number
cells.t = new Int8Array(cells.i.length); // cell type: 1 = land coast; -1 = water near coast;