mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] Fix telecomms to work with multi-z [MDB IGNORE] (#9797)
* Fix telecomms to work with multi-z (#63146) * Fix telecomms to work with multi-z Co-authored-by: Tim <timothymtorres@gmail.com>
This commit is contained in:
@@ -21,9 +21,14 @@
|
||||
|
||||
/obj/machinery/telecomms/relay/receive_information(datum/signal/subspace/signal, obj/machinery/telecomms/machine_from)
|
||||
// Add our level and send it back
|
||||
var/turf/T = get_turf(src)
|
||||
if(can_send(signal) && T)
|
||||
signal.levels |= T.z
|
||||
var/turf/relay_turf = get_turf(src)
|
||||
if(can_send(signal) && relay_turf)
|
||||
// Relays send signals to all ZTRAIT_STATION z-levels
|
||||
if(SSmapping.level_trait(relay_turf.z, ZTRAIT_STATION))
|
||||
for(var/z in SSmapping.levels_by_trait(ZTRAIT_STATION))
|
||||
signal.levels |= z
|
||||
else
|
||||
signal.levels |= relay_turf.z
|
||||
|
||||
// Checks to see if it can send/receive.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user