mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user