From a42c0d40a9462030a9afddcf84399b9845e942ba Mon Sep 17 00:00:00 2001 From: Verkister Date: Thu, 27 Oct 2022 17:50:04 +0300 Subject: [PATCH] Fixes wilderness active edge issues with ceilings! The maploader/reader/thingy now generates "roofs" for open indoors POIs if there is open space above. --- code/modules/maps/tg/reader.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/maps/tg/reader.dm b/code/modules/maps/tg/reader.dm index bb320e27ae..c959115540 100644 --- a/code/modules/maps/tg/reader.dm +++ b/code/modules/maps/tg/reader.dm @@ -418,6 +418,12 @@ GLOBAL_DATUM_INIT(_preloader, /dmm_suite/preloader, new) if(orientation != 0) // 0 means no rotation var/atom/A = . A.set_dir(turn(A.dir, orientation)) + if(istype(crds, /turf/simulated/floor)) //CHOMPAdd: Wilderness ceilings! + var/turf/simulated/floor/F = crds + if(istype(F.loc, /area/submap) && F.outdoors != 1) + var/turf/above = GetAbove(F) + if(above && istype(above, /turf/simulated/open)) + above.ChangeTurf(get_base_turf_by_area(F), FALSE, TRUE) /dmm_suite/proc/create_atom(path, crds) set waitfor = FALSE