mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
fix: missing cell
This commit is contained in:
parent
a3c81b24d1
commit
326ed8ccbf
1 changed files with 2 additions and 1 deletions
3
main.js
3
main.js
|
|
@ -1698,8 +1698,9 @@ function addZones(number = 1) {
|
|||
const neib = ra(state.neighbors.filter(n => n && !states[n].removed));
|
||||
const cell = cells.i.find(i => cells.state[i] === state.i && !state.removed && cells.c[i].some(c => cells.state[c] === neib));
|
||||
const cellsArray = [],
|
||||
queue = [cell],
|
||||
queue = [],
|
||||
power = rand(10, 30);
|
||||
if (cell) queue.push.cell;
|
||||
|
||||
while (queue.length) {
|
||||
const q = queue.shift();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue