diff --git a/rustdoc/game/debug/building_procgen/fn.generate_buildings_on_empty_residential_roads.html b/rustdoc/game/debug/building_procgen/fn.generate_buildings_on_empty_residential_roads.html index 1f4452de27..a0314528f4 100644 --- a/rustdoc/game/debug/building_procgen/fn.generate_buildings_on_empty_residential_roads.html +++ b/rustdoc/game/debug/building_procgen/fn.generate_buildings_on_empty_residential_roads.html @@ -1,4 +1,4 @@ game::debug::building_procgen::generate_buildings_on_empty_residential_roads - Rust

[][src]Function game::debug::building_procgen::generate_buildings_on_empty_residential_roads

fn generate_buildings_on_empty_residential_roads(
    app: &App,
    rng: &mut XorShiftRng,
    timer: &mut Timer<'_>
) -> Vec<Polygon>
\ No newline at end of file + Change settings

[][src]Function game::debug::building_procgen::generate_buildings_on_empty_residential_roads

fn generate_buildings_on_empty_residential_roads(
    app: &App,
    rng: &mut XorShiftRng,
    timer: &mut Timer<'_>
) -> Vec<Polygon>
\ No newline at end of file diff --git a/rustdoc/game/debug/building_procgen/fn.rand_dist.html b/rustdoc/game/debug/building_procgen/fn.rand_dist.html index 9fe1e24986..36f8bc64ed 100644 --- a/rustdoc/game/debug/building_procgen/fn.rand_dist.html +++ b/rustdoc/game/debug/building_procgen/fn.rand_dist.html @@ -1,4 +1,4 @@ game::debug::building_procgen::rand_dist - Rust

[][src]Function game::debug::building_procgen::rand_dist

fn rand_dist(rng: &mut XorShiftRng, low: f64, high: f64) -> Distance
\ No newline at end of file + Change settings

[][src]Function game::debug::building_procgen::rand_dist

fn rand_dist(rng: &mut XorShiftRng, low: f64, high: f64) -> Distance
\ No newline at end of file diff --git a/rustdoc/game/debug/building_procgen/index.html b/rustdoc/game/debug/building_procgen/index.html index a0b999e4dc..60060f3939 100644 --- a/rustdoc/game/debug/building_procgen/index.html +++ b/rustdoc/game/debug/building_procgen/index.html @@ -1,6 +1,6 @@ game::debug::building_procgen - Rust

[][src]Module game::debug::building_procgen

Structs

+ Change settings

[][src]Module game::debug::building_procgen

Structs

BuildingProceduralGenerator

Functions

generate_buildings_on_empty_residential_roads
rand_dist
\ 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 34d63b6044..2e9f916c34 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, 09 Feb 2021 23:50:08 +0000";

The built-time in RFC2822, UTC

+ Change settings

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

pub const BUILT_TIME_UTC: &str = "Wed, 10 Feb 2021 00:14:16 +0000";

The built-time in RFC2822, UTC

\ No newline at end of file diff --git a/rustdoc/src/game/debug/building_procgen.rs.html b/rustdoc/src/game/debug/building_procgen.rs.html index e1d1bb84a4..07d2d14bdc 100644 --- a/rustdoc/src/game/debug/building_procgen.rs.html +++ b/rustdoc/src/game/debug/building_procgen.rs.html @@ -189,6 +189,9 @@ 186 187 188 +189 +190 +191
 use std::collections::HashSet;
 
@@ -313,11 +316,14 @@
         let mut dist_along = rand_dist(rng, 1.0, 5.0);
         while dist_along < lane.lane_center_pts.length() {
             let (sidewalk_pt, angle) = lane.lane_center_pts.must_dist_along(dist_along);
-            let setback = rand_dist(rng, 10.0, 20.0);
-            let center = sidewalk_pt.project_away(setback, angle.rotate_degs(-90.0));
-
             let width = rng.gen_range(6.0..14.0);
             let height = rng.gen_range(6.0..14.0);
+
+            // Make it so that the front of the house is always set back a fixed amount. So account
+            // for the chosen "height".
+            let setback = Distance::meters(10.0) + Distance::meters(height / 2.0);
+            let center = sidewalk_pt.project_away(setback, angle.rotate_degs(-90.0));
+
             houses.push(
                 Polygon::rectangle(width, height)
                     .rotate(angle)
diff --git a/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-827e2766ef6d8a30/out/built.rs.html b/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-827e2766ef6d8a30/out/built.rs.html
index 55c1bfc14a..eb12ede196 100644
--- a/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-827e2766ef6d8a30/out/built.rs.html
+++ b/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-827e2766ef6d8a30/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, 09 Feb 2021 23:50:08 +0000";
+pub const BUILT_TIME_UTC: &str = "Wed, 10 Feb 2021 00:14:16 +0000";
 /// The target architecture, given by `cfg!(target_arch)`.
 pub const CFG_TARGET_ARCH: &str = "x86_64";
 /// The endianness, given by `cfg!(target_endian)`.