mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
Update script.js
175 fix3
This commit is contained in:
parent
ac153b1dda
commit
4fa9b0d6ad
1 changed files with 1 additions and 1 deletions
|
|
@ -3166,7 +3166,7 @@ function fantasyMap() {
|
||||||
let pathCells = [];
|
let pathCells = [];
|
||||||
for (let i = 0; i <= l; i ++) {
|
for (let i = 0; i <= l; i ++) {
|
||||||
const p = node.getPointAtLength(i);
|
const p = node.getPointAtLength(i);
|
||||||
const cell = diagram.find(p.x, p.y);
|
const cell = diagram.find(p.x, p.y).index;
|
||||||
pathCells.push(cell);
|
pathCells.push(cell);
|
||||||
}
|
}
|
||||||
const uniqueCells = [...new Set(pathCells)];
|
const uniqueCells = [...new Set(pathCells)];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue