mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[MIRROR] Turns transparency for turfs into an element, and gives it to datum materials. (#1567)
* Turns transparency for turfs into an element, and gives it to datum materials. (#54250) * Turns transparency for turfs into an element, and gives it to datum materials. Co-authored-by: Qustinnus <Floydje123@hotmail.com>
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
toggle()
|
||||
|
||||
/obj/structure/pitgrate/proc/update_openspace()
|
||||
var/turf/open/transparent/openspace/T = get_turf(src)
|
||||
var/turf/open/openspace/T = get_turf(src)
|
||||
if(!istype(T))
|
||||
return
|
||||
//Simple way to keep plane conflicts away, could probably be upgraded to something less nuclear with 513
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
var/clone_area = SSmapping.RequestBlockReservation(size_x * 2 + 1, size_y * 2 + 1)
|
||||
for(var/turf/placeholder in block(locate(target_turf.x - size_x, target_turf.y - size_y, target_turf.z), locate(target_turf.x + size_x, target_turf.y + size_y, target_turf.z)))
|
||||
var/turf/T = placeholder
|
||||
while(istype(T, /turf/open/transparent/openspace)) //Multi-z photography
|
||||
while(istype(T, /turf/open/openspace)) //Multi-z photography
|
||||
T = SSmapping.get_turf_below(T)
|
||||
if(!T)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user