Update heightmap-generator.js

move 'range = query.slice()' out of 'range.forEach'
This commit is contained in:
janphelee 2019-12-30 09:58:15 +08:00 committed by GitHub
parent 8a6108e203
commit b437075a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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