Merge pull request #1064 from Citadel-Station-13/upstream-merge-27436

[MIRROR] Fixes buttons under doors.
This commit is contained in:
CitadelStationBot
2017-05-20 15:05:17 -05:00
committed by GitHub
+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