Fixes rcds working on transit space (#981)

This commit is contained in:
CitadelStationBot
2017-05-18 11:54:10 -05:00
committed by Poojawa
parent 60f5f84353
commit 946013ac22
3 changed files with 24 additions and 1 deletions
+12
View File
@@ -754,4 +754,16 @@
for(var/obj/machinery/door/E in A) //dumb, I know, but playing it on the engines doesn't do it justice
playsound(E, s, 100, FALSE, max(width, height) - world.view)
/obj/docking_port/mobile/proc/is_in_shuttle_bounds(atom/A)
var/turf/T = get_turf(A)
if(T.z != z)
return FALSE
var/list/bounds= return_coords()
var/turf/T0 = locate(bounds[1],bounds[2],z)
var/turf/T1 = locate(bounds[3],bounds[4],z)
if(T in block(T0,T1))
return TRUE
return FALSE
#undef DOCKING_PORT_HIGHLIGHT