mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix: submap to map old-new grids correctly
This commit is contained in:
parent
1a3ebe5b99
commit
8735ca8a3e
3 changed files with 4 additions and 3 deletions
|
|
@ -30,7 +30,6 @@ window.Submap = (function () {
|
|||
const inverse = options.inverse;
|
||||
const stage = s => INFO && console.log("SUBMAP:", s);
|
||||
const timeStart = performance.now();
|
||||
const childMap = {grid, pack};
|
||||
invokeActiveZooming();
|
||||
|
||||
// copy seed
|
||||
|
|
@ -42,6 +41,7 @@ window.Submap = (function () {
|
|||
// create new grid
|
||||
applyMapSize();
|
||||
grid = generateGrid();
|
||||
|
||||
drawScaleBar(scale);
|
||||
|
||||
const resampler = (points, qtree, f) => {
|
||||
|
|
@ -126,6 +126,7 @@ window.Submap = (function () {
|
|||
// generatePrecipitation();
|
||||
stage("Cell cleanup.");
|
||||
reGraph();
|
||||
const childMap = {grid, pack};
|
||||
|
||||
// remove misclassified cells
|
||||
stage("Define coastline.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue