mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-21 19:41:23 +01:00
feat: routes - return old rePacj logic to not break auto-update
This commit is contained in:
parent
126393fea3
commit
e09c0e5344
2 changed files with 2 additions and 13 deletions
13
main.js
13
main.js
|
|
@ -1177,17 +1177,8 @@ function reGraph() {
|
|||
const height = gridCells.h[i];
|
||||
const type = gridCells.t[i];
|
||||
|
||||
// exclude most of ocean points
|
||||
if (height < 20) {
|
||||
const isLake = features[gridCells.f[i]].type === "lake";
|
||||
if (isLake && type !== -1) continue;
|
||||
|
||||
if (type === 0) continue;
|
||||
if (type < -4 && !each(24)(i)) continue;
|
||||
if (type === -4 && !each(12)(i)) continue;
|
||||
if (type === -3 && !each(6)(i)) continue;
|
||||
if (type === -2 && !each(3)(i)) continue;
|
||||
}
|
||||
if (height < 20 && type !== -1 && type !== -2) continue; // exclude all deep ocean points
|
||||
if (type === -2 && (i % 4 === 0 || features[gridCells.f[i]].type === "lake")) continue; // exclude non-coastal lake points
|
||||
|
||||
const [x, y] = points[i];
|
||||
addNewPoint(i, x, y, height);
|
||||
|
|
|
|||
|
|
@ -898,8 +898,6 @@ export function resolveVersionConflicts(version) {
|
|||
}
|
||||
});
|
||||
|
||||
console.log(pack.routes);
|
||||
|
||||
routes.selectAll("path").remove();
|
||||
if (layerIsOn("toggleRoutes")) drawRoutes();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue