mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 12:31:24 +01:00
Fix typo (thx evolvedexperiment)
This commit is contained in:
parent
3827f878e7
commit
1bf71c25fa
1 changed files with 3 additions and 3 deletions
|
|
@ -174,14 +174,14 @@ window.Submap = (function () {
|
|||
throw new Error("should be the same type.")
|
||||
}
|
||||
const [oldpx, oldpy] = oldCells.p[oid];
|
||||
const nd = distance(projection(oldpx, oldpx, false));
|
||||
const nd = distance(projection(oldpx, oldpy, false));
|
||||
if (!nd) {
|
||||
console.error("no distance!", nd, "old point", oldp)
|
||||
console.error("no distance!", nd, "old point", oldpx, oldpy)
|
||||
}
|
||||
if (nd < d) [d, oldid] = [nd, oid];
|
||||
})
|
||||
if (!oldid) {
|
||||
console.warn("Warning, no match for", id, "parent", gridCellId, "in");
|
||||
console.warn("Warning, no match for", id, "(parent:", gridCellId, ")");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue