Fixes buttons under doors.

This commit is contained in:
CitadelStationBot
2017-05-20 11:34:52 -05:00
parent 186a63ad34
commit 06c0856799
+3 -1
View File
@@ -148,7 +148,9 @@
/atom/proc/IsObscured()
if(!isturf(loc)) //This only makes sense for things directly on turfs for now
return FALSE
var/turf/T = loc
var/turf/T = get_turf_pixel(src)
if(!T)
return FALSE
for(var/atom/movable/AM in T)
if(AM.flags & PREVENT_CLICK_UNDER && AM.density && AM.layer > layer)
return TRUE