Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions code/game/turfs/open_space.dm
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ GLOBAL_DATUM_INIT(openspace_backdrop_one_for_all, /atom/movable/openspace_backdr
var/turf/below = get_turf_below()
var/depth = 0
while(below)
new /obj/vis_contents_holder(src, below, depth)
if(!istransparentturf(below))
var/below_transparent = istransparentturf(below)
new /obj/vis_contents_holder(src, below, depth, !below_transparent || !istype(below, /turf/open_space))
if(!below_transparent)
break
below = SSmapping.get_turf_below(below)
depth++
Expand Down
5 changes: 3 additions & 2 deletions code/game/turfs/turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
anchored = TRUE

/obj/vis_contents_holder/Initialize(mapload, vis, offset)
/obj/vis_contents_holder/Initialize(mapload, vis, offset, backdrop=TRUE)
. = ..()
plane -= offset
vis_contents += GLOB.openspace_backdrop_one_for_all
if(backdrop)
vis_contents += GLOB.openspace_backdrop_one_for_all
vis_contents += vis
name = null // Makes it invisible on right click

Expand Down