Replace z check with atoms_share_level(a,b)

This commit is contained in:
Markolie
2017-02-16 19:16:16 +01:00
parent 4d857de148
commit c26e6d1559
+1 -1
View File
@@ -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)