From a470b016fbe0abeb73407953f4e9e72693045791 Mon Sep 17 00:00:00 2001 From: flo666 Date: Tue, 26 Sep 2023 15:27:08 +0200 Subject: [PATCH] fix_desert_city_library_windowsill --- world/src/site2/plot/desert_city_multiplot.rs | 38 +++++++++++-------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/world/src/site2/plot/desert_city_multiplot.rs b/world/src/site2/plot/desert_city_multiplot.rs index d7cadc4eff..524ada4063 100644 --- a/world/src/site2/plot/desert_city_multiplot.rs +++ b/world/src/site2/plot/desert_city_multiplot.rs @@ -1402,22 +1402,28 @@ impl Structure for DesertCityMultiPlot { } } } - for h in 0..2 { - for n in 0..2 { - painter - .aabb(Aabb { - min: Vec2::new( - bldg_b_center.x + (2 * tower_length), - bldg_b_center.y - 4, - ) - .with_z(base + 1 + (n * (tower_height / 2)) + (h * 4)), - max: Vec2::new( - bldg_b_center.x + (2 * tower_length) + 1, - bldg_b_center.y + 4, - ) - .with_z(base + 2 + (n * (tower_height / 2)) + (h * 4)), - }) - .fill(wood.clone()); + for w in 0..2 { + for h in 0..2 { + for n in 0..2 { + painter + .aabb(Aabb { + min: Vec2::new( + bldg_b_center.x + (2 * tower_length), + bldg_b_center.y - 4 + (6 * w), + ) + .with_z( + base + 1 + (n * (tower_height / 2)) + (h * 4), + ), + max: Vec2::new( + bldg_b_center.x + (2 * tower_length) + 1, + bldg_b_center.y - 2 + (6 * w), + ) + .with_z( + base + 2 + (n * (tower_height / 2)) + (h * 4), + ), + }) + .fill(wood.clone()); + } } } // Library