mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
v. 0.60.07b
Undeclared array
This commit is contained in:
parent
3471cfd271
commit
96c98b181f
1 changed files with 3 additions and 2 deletions
|
|
@ -1397,7 +1397,7 @@ function fantasyMap() {
|
||||||
// recalculate Voronoi Graph to pack cells
|
// recalculate Voronoi Graph to pack cells
|
||||||
function reGraph() {
|
function reGraph() {
|
||||||
console.time("reGraph");
|
console.time("reGraph");
|
||||||
const tempCells = [],newPoints = []; // to store new data
|
const tempCells = [], newPoints = []; // to store new data
|
||||||
// get average precipitation based on graph size
|
// get average precipitation based on graph size
|
||||||
const avPrec = precInput.value / 5000;
|
const avPrec = precInput.value / 5000;
|
||||||
const smallLakesMax = 500;
|
const smallLakesMax = 500;
|
||||||
|
|
@ -6989,7 +6989,8 @@ function fantasyMap() {
|
||||||
ruler.selectAll(".linear").selectAll("circle.center").call(d3.drag().on("drag", rulerCenterDrag));
|
ruler.selectAll(".linear").selectAll("circle.center").call(d3.drag().on("drag", rulerCenterDrag));
|
||||||
|
|
||||||
// update data
|
// update data
|
||||||
newPoints = [],riversData = [],queue = [],elSelected = "";
|
const newPoints = [];
|
||||||
|
riversData = [], queue = [], elSelected = "";
|
||||||
points = JSON.parse(data[1]);
|
points = JSON.parse(data[1]);
|
||||||
cells = JSON.parse(data[2]);
|
cells = JSON.parse(data[2]);
|
||||||
manors = JSON.parse(data[3]);
|
manors = JSON.parse(data[3]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue