From 612a75cb4922ff8cb40be316f8908b16ef346bce Mon Sep 17 00:00:00 2001 From: Leshana Date: Wed, 31 Jan 2018 21:02:22 -0500 Subject: [PATCH] Prevent communicators from connecting to the exonet when off station. --- code/game/objects/items/devices/communicator/communicator.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/objects/items/devices/communicator/communicator.dm b/code/game/objects/items/devices/communicator/communicator.dm index ad3ad9522f..4ab3644374 100644 --- a/code/game/objects/items/devices/communicator/communicator.dm +++ b/code/game/objects/items/devices/communicator/communicator.dm @@ -174,6 +174,11 @@ var/global/list/obj/item/device/communicator/all_communicators = list() // Description: Simple check to see if the exonet node is active. /obj/item/device/communicator/proc/get_connection_to_tcomms() if(node && node.on && node.allow_external_communicators && !is_jammed(src)) + // VOREStation Edit Start - Lose connection if too far from our exonet node. + var/turf/T = get_turf(src) + if(!T || !is_on_same_plane_or_station(T.z, node.z)) + return 0 + // VOREStation Edit End return 1 return 0