Skip to content

Commit

Permalink
I got the turn restriction preservation direction wrong earlier. Now
Browse files Browse the repository at this point in the history
everything along Aurora looks fine, but maybe I wrote the other way when
testing in Montlake earlier. Guess I'll find out soon. #114

Not regenerating all maps yet, since more churn is on the way.
  • Loading branch information
dabreegster committed Dec 31, 2020
1 parent 60e7c91 commit 629ee92
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions map_model/src/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,6 @@ impl RawMap {

let (i1, i2) = (short.i1, short.i2);
let i1_pt = self.intersections[&i1].point;
// Remember the original connections to i1 before we merge. None of these will change IDs.
let mut connected_to_i1 = self.roads_per_intersection(i1);
connected_to_i1.retain(|x| *x != short);

self.roads.remove(&short).unwrap();

Expand Down Expand Up @@ -343,7 +340,7 @@ impl RawMap {
if to == short && rt == RestrictionType::BanTurns {
// Remove this restriction, replace it with a new one to each of the successors
// of the deleted road
for x in &connected_to_i1 {
for x in &created {
fix_trs.push((rt, *x));
}
} else {
Expand Down

0 comments on commit 629ee92

Please sign in to comment.