mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-25 11:44:25 +03:00
avoid composite turns that loop around
This commit is contained in:
parent
31ddbd0e61
commit
07ae4737ae
@ -148,6 +148,10 @@ fn merge(delete_r: RoadID, mut m: HalfMap) -> HalfMap {
|
||||
if t.src != new_turn.id.dst {
|
||||
continue;
|
||||
}
|
||||
// Don't make a composite turn that just loops around.
|
||||
if t.dst == new_turn.id.src {
|
||||
continue;
|
||||
}
|
||||
let mut composite_turn = new_turn.clone();
|
||||
composite_turn.id.dst = t.dst;
|
||||
composite_turn.geom.extend(m.turns[&t].geom.clone());
|
||||
|
Loading…
Reference in New Issue
Block a user