diff --git a/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html b/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html index a551a42a91..08ff0e6ec5 100644 --- a/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html +++ b/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html @@ -1,5 +1,5 @@ game::pregame::built_info::BUILT_TIME_UTC - Rust

[][src]Constant game::pregame::built_info::BUILT_TIME_UTC

pub const BUILT_TIME_UTC: &str = "Tue, 26 Jan 2021 00:10:16 +0000";

The built-time in RFC2822, UTC

+ Change settings

[][src]Constant game::pregame::built_info::BUILT_TIME_UTC

pub const BUILT_TIME_UTC: &str = "Tue, 26 Jan 2021 01:34:02 +0000";

The built-time in RFC2822, UTC

\ No newline at end of file diff --git a/rustdoc/map_model/make/turns/fn.curvey_turn.html b/rustdoc/map_model/make/turns/fn.curvey_turn.html index a52b62de8e..470ec90b89 100644 --- a/rustdoc/map_model/make/turns/fn.curvey_turn.html +++ b/rustdoc/map_model/make/turns/fn.curvey_turn.html @@ -1,4 +1,4 @@ map_model::make::turns::curvey_turn - Rust

[][src]Function map_model::make::turns::curvey_turn

fn curvey_turn(src: &Lane, dst: &Lane) -> Result<PolyLine>
\ No newline at end of file + Change settings

[][src]Function map_model::make::turns::curvey_turn

fn curvey_turn(src: &Lane, dst: &Lane) -> Result<PolyLine>
\ No newline at end of file diff --git a/rustdoc/map_model/make/turns/fn.from_pt.html b/rustdoc/map_model/make/turns/fn.from_pt.html index 14097ea118..fafc0d7246 100644 --- a/rustdoc/map_model/make/turns/fn.from_pt.html +++ b/rustdoc/map_model/make/turns/fn.from_pt.html @@ -1,4 +1,4 @@ map_model::make::turns::from_pt - Rust

[][src]Function map_model::make::turns::from_pt

fn from_pt(pt: Point2d<f64>) -> Pt2D
\ No newline at end of file + Change settings

[][src]Function map_model::make::turns::from_pt

fn from_pt(pt: Point2d<f64>) -> Pt2D
\ No newline at end of file diff --git a/rustdoc/map_model/make/turns/fn.lc_penalty.html b/rustdoc/map_model/make/turns/fn.lc_penalty.html index 9d4d55b413..34fedf1881 100644 --- a/rustdoc/map_model/make/turns/fn.lc_penalty.html +++ b/rustdoc/map_model/make/turns/fn.lc_penalty.html @@ -1,4 +1,4 @@ map_model::make::turns::lc_penalty - Rust

[][src]Function map_model::make::turns::lc_penalty

fn lc_penalty(t: &Turn, map: &Map) -> isize
\ No newline at end of file + Change settings

[][src]Function map_model::make::turns::lc_penalty

fn lc_penalty(t: &Turn, map: &Map) -> isize
\ No newline at end of file diff --git a/rustdoc/map_model/make/turns/fn.make_vehicle_turns.html b/rustdoc/map_model/make/turns/fn.make_vehicle_turns.html index 4cc0c91535..5c3b6d04ee 100644 --- a/rustdoc/map_model/make/turns/fn.make_vehicle_turns.html +++ b/rustdoc/map_model/make/turns/fn.make_vehicle_turns.html @@ -1,4 +1,4 @@ map_model::make::turns::make_vehicle_turns - Rust

[][src]Function map_model::make::turns::make_vehicle_turns

fn make_vehicle_turns(i: &Intersection, map: &Map) -> Vec<Turn>
\ No newline at end of file + Change settings

[][src]Function map_model::make::turns::make_vehicle_turns

fn make_vehicle_turns(i: &Intersection, map: &Map) -> Vec<Turn>
\ No newline at end of file diff --git a/rustdoc/map_model/make/turns/fn.remove_merging_turns.html b/rustdoc/map_model/make/turns/fn.remove_merging_turns.html index 04355f35c0..86ea1c4942 100644 --- a/rustdoc/map_model/make/turns/fn.remove_merging_turns.html +++ b/rustdoc/map_model/make/turns/fn.remove_merging_turns.html @@ -1,4 +1,4 @@ map_model::make::turns::remove_merging_turns - Rust

[][src]Function map_model::make::turns::remove_merging_turns

fn remove_merging_turns(
    map: &Map,
    input: Vec<Turn>,
    turn_type: TurnType
) -> Vec<Turn>
\ No newline at end of file + Change settings

[][src]Function map_model::make::turns::remove_merging_turns

fn remove_merging_turns(
    map: &Map,
    input: Vec<Turn>,
    turn_type: TurnType
) -> Vec<Turn>
\ No newline at end of file diff --git a/rustdoc/map_model/make/turns/fn.to_pt.html b/rustdoc/map_model/make/turns/fn.to_pt.html index 983589a5ad..bf85a2c1d2 100644 --- a/rustdoc/map_model/make/turns/fn.to_pt.html +++ b/rustdoc/map_model/make/turns/fn.to_pt.html @@ -1,4 +1,4 @@ map_model::make::turns::to_pt - Rust

[][src]Function map_model::make::turns::to_pt

fn to_pt(pt: Pt2D) -> Point2d<f64>
\ No newline at end of file + Change settings

[][src]Function map_model::make::turns::to_pt

fn to_pt(pt: Pt2D) -> Point2d<f64>
\ No newline at end of file diff --git a/rustdoc/map_model/make/turns/fn.turn_type_from_angles.html b/rustdoc/map_model/make/turns/fn.turn_type_from_angles.html index a6e4af42fc..49adfb03ea 100644 --- a/rustdoc/map_model/make/turns/fn.turn_type_from_angles.html +++ b/rustdoc/map_model/make/turns/fn.turn_type_from_angles.html @@ -1,4 +1,4 @@ map_model::make::turns::turn_type_from_angles - Rust

[][src]Function map_model::make::turns::turn_type_from_angles

fn turn_type_from_angles(from: Angle, to: Angle) -> TurnType
\ No newline at end of file + Change settings

[][src]Function map_model::make::turns::turn_type_from_angles

fn turn_type_from_angles(from: Angle, to: Angle) -> TurnType
\ No newline at end of file diff --git a/rustdoc/map_model/make/turns/index.html b/rustdoc/map_model/make/turns/index.html index 5608cc7bb6..c2b848a66f 100644 --- a/rustdoc/map_model/make/turns/index.html +++ b/rustdoc/map_model/make/turns/index.html @@ -1,6 +1,6 @@ map_model::make::turns - Rust

[][src]Module map_model::make::turns

Functions

+ Change settings

[][src]Module map_model::make::turns

Functions

curvey_turn
does_turn_pass_restrictions
ensure_unique
from_pt
is_turn_allowed
lc_penalty
make_all_turns

Generate all driving and walking turns at an intersection, accounting for OSM turn restrictions.

make_vehicle_turns
remove_merging_turns
to_pt
turn_type_from_angles
\ No newline at end of file diff --git a/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html b/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html index 331ca53f5b..635aec8654 100644 --- a/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html +++ b/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html @@ -122,7 +122,7 @@ /// The output of `rustdoc -V` pub const RUSTDOC_VERSION: &str = "rustdoc 1.49.0 (e1884a8e3 2020-12-29)"; /// The built-time in RFC2822, UTC -pub const BUILT_TIME_UTC: &str = "Tue, 26 Jan 2021 00:10:16 +0000"; +pub const BUILT_TIME_UTC: &str = "Tue, 26 Jan 2021 01:34:02 +0000"; /// The target architecture, given by `cfg!(target_arch)`. pub const CFG_TARGET_ARCH: &str = "x86_64"; /// The endianness, given by `cfg!(target_endian)`. diff --git a/rustdoc/src/map_model/make/turns.rs.html b/rustdoc/src/map_model/make/turns.rs.html index cd66d38051..a7f4a2148c 100644 --- a/rustdoc/src/map_model/make/turns.rs.html +++ b/rustdoc/src/map_model/make/turns.rs.html @@ -396,6 +396,13 @@ 393 394 395 +396 +397 +398 +399 +400 +401 +402
 use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
 
@@ -611,8 +618,15 @@
                 continue;
             }
 
-            let turn_type =
+            let mut turn_type =
                 turn_type_from_angles(src.last_line().angle(), dst.first_line().angle());
+            if turn_type == TurnType::UTurn {
+                // Lots of false positives when classifying these just based on angles. So also
+                // require the road names to match.
+                if map.get_parent(src.id).get_name(None) != map.get_parent(dst.id).get_name(None) {
+                    turn_type = TurnType::Left;
+                }
+            }
             let geom = if turn_type == TurnType::Straight {
                 PolyLine::must_new(vec![src.last_pt(), dst.first_pt()])
             } else {