Update routes-generator.js

Fix adding both directions for routes so that they are not duplicated.
This commit is contained in:
zfilip 2022-10-23 16:36:19 -07:00
parent ef31552cf1
commit a1328abb14

View file

@ -94,7 +94,7 @@ window.Routes = (function () {
}
const [from, exit, passable] = findOceanPath(ports[a].cell, ports[b].cell);
if (!passable) return null;
formed[[a, b]] = true; formed[[b, a]]
formed[[a, b]] = true; formed[[b, a]] = true;
const path = restorePath(ports[a].cell, exit, "ocean", from);
return path;
}