Also check if the new path intersects for path_b
This commit is contained in:
parent
7753ce8477
commit
ff214722a8
@ -393,6 +393,8 @@ int dijkstra_path_intersect(struct dijkstra_solver *solver,
|
||||
path_new->weight = dijkstra_get_weight_from_distance(path_new->source,
|
||||
path_new->destination,
|
||||
path_new->net_meta->type);
|
||||
|
||||
dijkstra_path_intersect_all(solver, path_a, path_new);
|
||||
}
|
||||
|
||||
// In case neither if matches that means we are on the corner where two paths intersect at their ends.
|
||||
|
Loading…
Reference in New Issue
Block a user