mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
Editors fixing + re-versioning
This commit is contained in:
parent
4a0f2f1337
commit
f532565f4f
7 changed files with 37 additions and 59 deletions
3
main.js
3
main.js
|
|
@ -695,6 +695,7 @@ async function generate(options) {
|
|||
if (shouldRegenerateGrid(grid, precreatedSeed)) grid = precreatedGraph || generateGrid();
|
||||
else delete grid.cells.h;
|
||||
grid.cells.h = await HeightmapGenerator.generate(grid);
|
||||
pack = {};
|
||||
|
||||
markFeatures();
|
||||
markupGridOcean();
|
||||
|
|
@ -2038,8 +2039,6 @@ const regenerateMap = debounce(async function (options) {
|
|||
customization = 0;
|
||||
resetZoom(1000);
|
||||
undraw();
|
||||
pack.religions = [];
|
||||
pack.cultures = [];
|
||||
await generate(options);
|
||||
restoreLayers();
|
||||
if (ThreeD.options.isOn) ThreeD.redraw();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue