diff --git a/src/dijkstragraph.c b/src/dijkstragraph.c index 4f106c2..eeeb835 100644 --- a/src/dijkstragraph.c +++ b/src/dijkstragraph.c @@ -315,6 +315,9 @@ int dijkstra_path_intersect(struct dijkstra_solver *solver, } else { if (path_a->net_meta->type != path_b->net_meta->type) return 0; // Never intersect two layers of different types, unless it's through access layers + // path_a and path_b types are now always guaranteed to be the same + if (path_a->net_meta->type == TRAINLINE) + return 0; // Never intersect trainlines (apart from with access types) } // Check height