mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Shorter houses
This commit is contained in:
parent
b62830b8b4
commit
ea688e725f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user