From 469c32c64de48c730a0a7806811b3f9dd3fc27cc Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 17 Nov 2025 23:59:10 -0600 Subject: [PATCH] Fix lattice deconstruction to update space areas (#93971) ## About The Pull Request When lattice and catwalks are deconstructed on `/area/space/nearstation` the area should update to `/area/space` since it is now an empty space tile. ## Why It's Good For The Game Consistency. This is very noticeable when exporting maps and there are chunks of nearstation area markers with empty space. ## Changelog :cl: fix: Fix lattice deconstruction to update space areas /:cl: --- code/game/objects/structures/lattice.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/game/objects/structures/lattice.dm b/code/game/objects/structures/lattice.dm index 4791a50f6fe..dd07dc3b965 100644 --- a/code/game/objects/structures/lattice.dm +++ b/code/game/objects/structures/lattice.dm @@ -48,6 +48,10 @@ for(var/thing_that_falls in turfloc) turfloc.zFall(thing_that_falls) + var/area/turf_area = get_area(turfloc) + if(isspaceturf(turfloc) && istype(turf_area, /area/space/nearstation)) + set_turf_to_area(turfloc, GLOB.areas_by_type[/area/space]) + /obj/structure/lattice/proc/deconstruction_hints(mob/user) return span_notice("The rods look like they could be cut. There's space for more rods or a tile.")