mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +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
|
|
@ -6110,7 +6110,7 @@
|
|||
<script src="modules/military-generator.js"></script>
|
||||
<script src="modules/markers-generator.js"></script>
|
||||
<script src="modules/coa-generator.js"></script>
|
||||
<script src="modules/submap.js?v=29052022"></script>
|
||||
<script src="modules/submap.js?v=02062022"></script>
|
||||
<script src="libs/polylabel.min.js"></script>
|
||||
<script src="libs/lineclip.min.js"></script>
|
||||
<script src="libs/alea.min.js"></script>
|
||||
|
|
|
|||
|
|
@ -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.");
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"use strict";
|
||||
// version and caching control
|
||||
|
||||
const version = "1.84.09"; // generator version, update each time
|
||||
const version = "1.84.10"; // generator version, update each time
|
||||
|
||||
{
|
||||
document.title += " v" + version;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue