mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 04:21:24 +01:00
Merge branch 'master' of https://github.com/Azgaar/Fantasy-Map-Generator into v1.8
This commit is contained in:
commit
ea1d535abd
180 changed files with 243 additions and 4024 deletions
1
main.js
1
main.js
|
|
@ -1413,6 +1413,7 @@ function reMarkFeatures() {
|
|||
cells.harbor[i] = water.length;
|
||||
};
|
||||
|
||||
if (!cells.i.length) return; // no cells -> there is nothing to do
|
||||
for (let i = 1, queue = [0]; queue[0] !== -1; i++) {
|
||||
const start = queue[0]; // first cell
|
||||
cells.f[start] = i; // assign feature number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue