mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v 0.8.24b
This commit is contained in:
parent
8b6aa11b59
commit
2d5d008fe8
3 changed files with 7 additions and 3 deletions
|
|
@ -59,7 +59,7 @@
|
|||
|
||||
const getSearoutes = function() {
|
||||
console.time("generateSearoutes");
|
||||
const cells = pack.cells, allPorts = pack.burgs.filter(b => b.port != 0 && !b.removed);
|
||||
const cells = pack.cells, allPorts = pack.burgs.filter(b => b.port > 0 && !b.removed);
|
||||
if (allPorts.length < 2) return [];
|
||||
const bodies = new Set(allPorts.map(b => b.port)); // features with ports
|
||||
let from = [], exit = null, path = [], paths = []; // array to store path segments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue