mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix: erase data before regeneration on heightmap erase mode to avoid lock state, v1.89.06
This commit is contained in:
parent
eb5d924cbd
commit
8288335514
4 changed files with 18 additions and 9 deletions
|
|
@ -204,6 +204,13 @@ function editHeightmap(options) {
|
|||
INFO && console.group("Edit Heightmap");
|
||||
TIME && console.time("regenerateErasedData");
|
||||
|
||||
// remove data
|
||||
pack.cultures = [];
|
||||
pack.burgs = [];
|
||||
pack.states = [];
|
||||
pack.provinces = [];
|
||||
pack.religions = [];
|
||||
|
||||
const erosionAllowed = allowErosion.checked;
|
||||
markFeatures();
|
||||
markupGridOcean();
|
||||
|
|
@ -231,8 +238,10 @@ function editHeightmap(options) {
|
|||
Lakes.defineGroup();
|
||||
defineBiomes();
|
||||
rankCells();
|
||||
|
||||
Cultures.generate();
|
||||
Cultures.expand();
|
||||
|
||||
BurgsAndStates.generate();
|
||||
Religions.generate();
|
||||
BurgsAndStates.defineStateForms();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue