fix(routes): connect new burg to land route only

This commit is contained in:
Azgaar 2025-04-17 13:11:23 +02:00
parent fd9e010153
commit 8dad1a3bac
3 changed files with 11 additions and 9 deletions

View file

@ -547,14 +547,7 @@ window.Burgs = (() => {
cells.burg[cellId] = burgId;
const newRoute = Routes.connect(cellId);
if (newRoute && layerIsOn("toggleRoutes")) {
const path = Routes.getPath(newRoute);
routes
.select("#" + newRoute.group)
.append("path")
.attr("d", path)
.attr("id", "route" + newRoute.i);
}
if (newRoute && layerIsOn("toggleRoutes")) drawRoute(newRoute);
drawBurgIcon(burg);
drawBurgLabel(burg);