mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-24 04:51:24 +01:00
submap mirror transformation, applicative style
This commit is contained in:
parent
38e708c0ed
commit
d0b7c3aa9a
3 changed files with 40 additions and 17 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