fixed walls not appearing when rooms are next to each other and doubled door thickness

This commit is contained in:
grimsace
2026-05-06 10:54:12 -05:00
parent 433de776fe
commit f7a30eaa7b
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -255,7 +255,7 @@ fn render_pixmap(layout: &DungeonLayout, settings: &UiSettings) -> Result<Pixmap
fill_bg(&mut pixmap, BG);
let wall_w = snap_even_width((g.cell / 2.5).max(1.0));
let door_w = (g.cell / 10.0).max(1.0).round();
let door_w = (g.cell / 5.0).max(1.0).round();
if settings.export_show_grid {
draw_grid(&mut pixmap, &g);
@@ -383,7 +383,7 @@ fn export_composite_masks(
let g = ExportGeometry::new(settings.cols, settings.rows);
let scene = collect_scene_data(layout, settings);
let wall_w = (g.cell / 2.5).max(1.0);
let door_w = (g.cell / 10.0).max(1.0);
let door_w = (g.cell / 5.0).max(1.0);
// List of tasks to perform in parallel
enum MaskTask {
@@ -451,7 +451,7 @@ fn export_composite_masks(
&mut pixmap,
&g,
&scene.room_cells,
None,
Some(&scene.room_edges),
&scene.door_edges,
wall_w,
WHITE,
@@ -664,7 +664,7 @@ fn raster_target_size(settings: &UiSettings) -> (u32, u32) {
pub fn build_svg(layout: &DungeonLayout, settings: &UiSettings) -> String {
let g = ExportGeometry::new(settings.cols, settings.rows);
let wall_w = (g.cell / 2.5).max(1.0);
let door_w = (g.cell / 10.0).max(1.0);
let door_w = (g.cell / 5.0).max(1.0);
let mut s = String::new();
let _ = writeln!(
+1 -1
View File
@@ -2433,7 +2433,7 @@ fn draw_layout(
hover_stair_idx: Option<usize>,
) {
let wall_width_px = (geometry.cell_size / 2.5).max(1.0);
let door_width_px = (geometry.cell_size / 10.0).max(1.0);
let door_width_px = (geometry.cell_size / 5.0).max(1.0);
let room_fill = Color32::from_rgb(70, 120, 160);
let corridor_fill = Color32::from_rgb(210, 190, 120);