Shorter houses

This commit is contained in:
Joshua Barretto 2019-09-24 18:59:07 +01:00
parent b62830b8b4
commit ea688e725f

View File

@ -393,7 +393,7 @@ impl TownVol {
Some(ColumnKind::Internal) => {} Some(ColumnKind::Internal) => {}
//Some(ColumnKind::External) => {} //Some(ColumnKind::External) => {}
Some(ColumnKind::Road) => { Some(ColumnKind::Road) => {
for z in -1..2 { for z in -1..1 {
let _ = self.set(Vec3::new(i, j, ground + z), CellKind::Road.into()); let _ = self.set(Vec3::new(i, j, ground + z), CellKind::Road.into());
} }
} }
@ -463,7 +463,7 @@ impl TownVol {
|| cells.contains(&(parent + dir - Vec3::unit_z())) || cells.contains(&(parent + dir - Vec3::unit_z()))
}) })
.unwrap_or(false) .unwrap_or(false)
&& parent.z + dir.z <= entrance.z + 3 && parent.z + dir.z <= entrance.z + 2
// Maximum house height // Maximum house height
{ {
cells.insert(parent + dir); cells.insert(parent + dir);