Make crew pinpointer consistent with crew monitor

Going inside a mech/sleeper/etc will not make you untrackable to the
crew pinpointer.
This commit is contained in:
Tayyyyyyy
2017-12-29 13:03:47 -07:00
parent c449acdc70
commit b1f70c53b5
+3 -3
View File
@@ -325,15 +325,15 @@
/obj/item/weapon/pinpointer/crew/proc/trackable(mob/living/carbon/human/H)
var/turf/here = get_turf(src)
if((H.z == 0 || H.z == here.z) && istype(H.w_uniform, /obj/item/clothing/under))
if(istype(H.w_uniform, /obj/item/clothing/under))
var/obj/item/clothing/under/U = H.w_uniform
// Suit sensors must be on maximum.
if(!U.has_sensor || U.sensor_mode < 3)
return FALSE
var/turf/there = get_turf(H)
return (H.z != 0 || (there && there.z == H.z))
var/turf/there = get_turf(U)
return there && there.z == here.z
return FALSE