From a1983712d32d938448c7d182deba1b8534accec4 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sat, 25 Apr 2020 20:12:59 +0100 Subject: [PATCH] Prevented windows spawning inside houses --- world/src/site/settlement/building/archetype/house.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/world/src/site/settlement/building/archetype/house.rs b/world/src/site/settlement/building/archetype/house.rs index 1ef6416d09..ebe671f544 100644 --- a/world/src/site/settlement/building/archetype/house.rs +++ b/world/src/site/settlement/building/archetype/house.rs @@ -199,7 +199,8 @@ impl Archetype for House { let facade_layer = 3; let structural_layer = facade_layer + 1; - let foundation_layer = structural_layer + 1; + let internal_layer = structural_layer + 1; + let foundation_layer = internal_layer + 1; let floor_layer = foundation_layer + 1; let foundation = make_block(100, 100, 100).with_priority(foundation_layer); @@ -209,7 +210,7 @@ impl Archetype for House { let roof = make_block(self.roof_color.r, self.roof_color.g, self.roof_color.b) .with_priority(facade_layer - 1); let empty = BlockMask::nothing(); - let internal = BlockMask::new(Block::empty(), structural_layer); + let internal = BlockMask::new(Block::empty(), internal_layer); let end_window = BlockMask::new( Block::new(BlockKind::Window1, make_meta(ori.flip())), structural_layer,