Never intersect trainlines
This commit is contained in:
parent
9ce5765192
commit
50c39a52bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user