From d64a5172035bafeb2d6eaa7de35aa40c2b8ecef0 Mon Sep 17 00:00:00 2001 From: Shdorsh <32726535+Shdorsh@users.noreply.github.com> Date: Fri, 14 Sep 2018 04:26:50 +0200 Subject: [PATCH] fixing atmos analyzer (#40150) Didn't check tanks etc. that were in backpack, other hand, or for new PRs, in the same circuit --- code/modules/integrated_electronics/subtypes/input.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/integrated_electronics/subtypes/input.dm b/code/modules/integrated_electronics/subtypes/input.dm index e963bf9262f..04d99f31471 100644 --- a/code/modules/integrated_electronics/subtypes/input.dm +++ b/code/modules/integrated_electronics/subtypes/input.dm @@ -1150,10 +1150,9 @@ for(var/i=1 to 6) set_pin_data(IC_OUTPUT, i, null) var/atom/target = get_pin_data_as_type(IC_INPUT, 1, /atom) - var/atom/movable/acting_object = get_object() if(!target) - target = acting_object.loc - if(!target.Adjacent(acting_object)) + target = get_turf(src) + if( get_dist(get_turf(target),get_turf(src)) > 1 ) activate_pin(3) return