Skip to content

Commit

Permalink
content: Don't have enclosure/padding around underground exhibits.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Mar 15, 2024
1 parent 4522f2d commit 57136a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion all-is-cubes-content/src/city.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,12 @@ async fn place_exhibits_in_city<I: Instant>(

// Amount by which the exhibit's own size is expanded to form walls and empty space
// for displaying it and allowing players to move around it.
let enclosure_thickness = FaceMap::repeat(1);
let enclosure_thickness = match exhibit.placement {
Placement::Surface => FaceMap::repeat(1),
// Underground exhibits get no enclosure; they are expected to play nicely with being
// buried in stone except for the entranceway.
Placement::Underground => FaceMap::repeat(0),
};

// Now that we know the size of the exhibit, find a place for it that fits its bounds.
let exhibit_footprint = exhibit_space.bounds();
Expand Down

0 comments on commit 57136a8

Please sign in to comment.