Prevent communicators from connecting to the exonet when off station.

This commit is contained in:
Leshana
2018-01-31 21:02:22 -05:00
parent 3365e042ca
commit 612a75cb49
@@ -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