Fixes wilderness active edge issues with ceilings!

The maploader/reader/thingy now generates "roofs" for open indoors POIs if there is open space above.
This commit is contained in:
Verkister
2022-10-27 17:50:04 +03:00
committed by GitHub
parent 73d11e1d70
commit a42c0d40a9

View File

@@ -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