From 629ee92a7e8af2bf73bcf997b7c8960fe5f818db Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Wed, 30 Dec 2020 17:30:05 -0800 Subject: [PATCH] I got the turn restriction preservation direction wrong earlier. Now 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. --- map_model/src/raw.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/map_model/src/raw.rs b/map_model/src/raw.rs index 00393ec66c..8e2d0de104 100644 --- a/map_model/src/raw.rs +++ b/map_model/src/raw.rs @@ -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(); @@ -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 {