diff --git a/rustdoc/game/info/building/fn.draw_occupants.html b/rustdoc/game/info/building/fn.draw_occupants.html index 342a572c6e..8b76d50356 100644 --- a/rustdoc/game/info/building/fn.draw_occupants.html +++ b/rustdoc/game/info/building/fn.draw_occupants.html @@ -1,4 +1,4 @@ game::info::building::draw_occupants - Rust

[][src]Function game::info::building::draw_occupants

pub fn draw_occupants(
    details: &mut Details,
    app: &App,
    id: BuildingID,
    focus: Option<PersonID>
)
\ No newline at end of file + Change settings

[][src]Function game::info::building::draw_occupants

pub fn draw_occupants(
    details: &mut Details,
    app: &App,
    id: BuildingID,
    focus: Option<PersonID>
)
\ No newline at end of file diff --git a/rustdoc/game/info/building/fn.header.html b/rustdoc/game/info/building/fn.header.html index ab3dff4456..598c9096b9 100644 --- a/rustdoc/game/info/building/fn.header.html +++ b/rustdoc/game/info/building/fn.header.html @@ -1,4 +1,4 @@ game::info::building::header - Rust

[][src]Function game::info::building::header

fn header(
    ctx: &EventCtx<'_>,
    app: &App,
    details: &mut Details,
    id: BuildingID,
    tab: Tab
) -> Vec<Widget>
\ No newline at end of file + Change settings

[][src]Function game::info::building::header

fn header(
    ctx: &EventCtx<'_>,
    app: &App,
    details: &mut Details,
    id: BuildingID,
    tab: Tab
) -> Vec<Widget>
\ No newline at end of file diff --git a/rustdoc/game/info/building/fn.info.html b/rustdoc/game/info/building/fn.info.html index 10e7f472e7..75f8f74321 100644 --- a/rustdoc/game/info/building/fn.info.html +++ b/rustdoc/game/info/building/fn.info.html @@ -1,4 +1,4 @@ game::info::building::info - Rust

[][src]Function game::info::building::info

pub fn info(
    ctx: &mut EventCtx<'_>,
    app: &App,
    details: &mut Details,
    id: BuildingID
) -> Vec<Widget>
\ No newline at end of file + Change settings

[][src]Function game::info::building::info

pub fn info(
    ctx: &mut EventCtx<'_>,
    app: &App,
    details: &mut Details,
    id: BuildingID
) -> Vec<Widget>
\ No newline at end of file diff --git a/rustdoc/game/info/building/fn.people.html b/rustdoc/game/info/building/fn.people.html index ef50f2a3cb..6bafaf9afe 100644 --- a/rustdoc/game/info/building/fn.people.html +++ b/rustdoc/game/info/building/fn.people.html @@ -1,4 +1,4 @@ game::info::building::people - Rust

[][src]Function game::info::building::people

pub fn people(
    ctx: &mut EventCtx<'_>,
    app: &App,
    details: &mut Details,
    id: BuildingID
) -> Vec<Widget>
\ No newline at end of file + Change settings

[][src]Function game::info::building::people

pub fn people(
    ctx: &mut EventCtx<'_>,
    app: &App,
    details: &mut Details,
    id: BuildingID
) -> Vec<Widget>
\ No newline at end of file diff --git a/rustdoc/game/info/building/index.html b/rustdoc/game/info/building/index.html index b3ddab4dec..ae05adac69 100644 --- a/rustdoc/game/info/building/index.html +++ b/rustdoc/game/info/building/index.html @@ -1,5 +1,5 @@ game::info::building - Rust

[][src]Module game::info::building

Functions

+ Change settings

[][src]Module game::info::building

Functions

draw_occupants
header
info
people
\ No newline at end of file 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 2b16b5711c..b2dfa727be 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 = "Sun, 07 Mar 2021 19:15:04 +0000";

The built-time in RFC2822, UTC

+ Change settings

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

pub const BUILT_TIME_UTC: &str = "Sun, 07 Mar 2021 19:17:23 +0000";

The built-time in RFC2822, UTC

\ No newline at end of file diff --git a/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-a95c4551e63dceca/out/built.rs.html b/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-a95c4551e63dceca/out/built.rs.html index b90dbb5219..2e2e967f86 100644 --- a/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-a95c4551e63dceca/out/built.rs.html +++ b/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-a95c4551e63dceca/out/built.rs.html @@ -122,7 +122,7 @@ /// The output of `rustdoc -V` pub const RUSTDOC_VERSION: &str = "rustdoc 1.50.0 (cb75ad5db 2021-02-10)"; /// The built-time in RFC2822, UTC -pub const BUILT_TIME_UTC: &str = "Sun, 07 Mar 2021 19:15:04 +0000"; +pub const BUILT_TIME_UTC: &str = "Sun, 07 Mar 2021 19:17:23 +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/game/info/building.rs.html b/rustdoc/src/game/info/building.rs.html index eb2be71efa..0fb450e4ef 100644 --- a/rustdoc/src/game/info/building.rs.html +++ b/rustdoc/src/game/info/building.rs.html @@ -311,6 +311,8 @@ 308 309 310 +311 +312
 use std::collections::BTreeMap;
 
@@ -383,34 +385,36 @@
         }
     }
 
-    txt.add(Line(""));
-    if let Some(pl) = app
-        .primary
-        .sim
-        .walking_path_to_nearest_parking_spot(&app.primary.map, id)
-        .and_then(|path| path.trace(&app.primary.map))
-    {
-        let color = app.cs.parking_trip;
-        // TODO But this color doesn't show up well against the info panel...
-        txt.add(Line("Nearest parking").fg(color));
-        txt.append(Line(format!(
-            " is ~{} away by foot",
-            pl.length() / Speed::miles_per_hour(3.0)
-        )));
+    if !app.primary.sim.infinite_parking() {
+        txt.add(Line(""));
+        if let Some(pl) = app
+            .primary
+            .sim
+            .walking_path_to_nearest_parking_spot(&app.primary.map, id)
+            .and_then(|path| path.trace(&app.primary.map))
+        {
+            let color = app.cs.parking_trip;
+            // TODO But this color doesn't show up well against the info panel...
+            txt.add(Line("Nearest parking").fg(color));
+            txt.append(Line(format!(
+                " is ~{} away by foot",
+                pl.length() / Speed::miles_per_hour(3.0)
+            )));
 
-        details
-            .unzoomed
-            .push(color, pl.make_polygons(Distance::meters(10.0)));
-        details.zoomed.extend(
-            color,
-            pl.dashed_lines(
-                Distance::meters(0.75),
-                Distance::meters(1.0),
-                Distance::meters(0.4),
-            ),
-        );
-    } else {
-        txt.add(Line("No nearby parking available"))
+            details
+                .unzoomed
+                .push(color, pl.make_polygons(Distance::meters(10.0)));
+            details.zoomed.extend(
+                color,
+                pl.dashed_lines(
+                    Distance::meters(0.75),
+                    Distance::meters(1.0),
+                    Distance::meters(0.4),
+                ),
+            );
+        } else {
+            txt.add(Line("No nearby parking available"))
+        }
     }
 
     if !txt.is_empty() {