mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: remove route if it has <2 points
This commit is contained in:
parent
601e71b846
commit
877afa546d
3 changed files with 3 additions and 2 deletions
|
|
@ -727,6 +727,7 @@ window.Routes = (function () {
|
|||
|
||||
for (const point of route.points) {
|
||||
const from = point[2];
|
||||
if (!routes[from]) continue;
|
||||
|
||||
for (const [to, routeId] of Object.entries(routes[from])) {
|
||||
if (routeId === route.i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue