v 0.8.24b

This commit is contained in:
Azgaar 2019-05-28 21:41:21 +03:00
parent 8b6aa11b59
commit 2d5d008fe8
3 changed files with 7 additions and 3 deletions

View file

@ -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