From c26e6d15598d899d4a76c7087fc78da62d97375f Mon Sep 17 00:00:00 2001 From: Markolie Date: Thu, 16 Feb 2017 19:16:16 +0100 Subject: [PATCH] Replace z check with atoms_share_level(a,b) --- code/modules/station_goals/shield.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/station_goals/shield.dm b/code/modules/station_goals/shield.dm index fae4b3cf4bd..2090b34baa5 100644 --- a/code/modules/station_goals/shield.dm +++ b/code/modules/station_goals/shield.dm @@ -68,7 +68,7 @@ /obj/machinery/computer/sat_control/proc/toggle(id) for(var/obj/machinery/satellite/S in machines) - if(S.id == id && S.z == z) + if(S.id == id && atoms_share_level(src, S)) S.toggle() /obj/machinery/computer/sat_control/ui_data(mob/user, ui_key = "main", datum/topic_state/state = physical_state)