Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Fixes tcomms relays being permanent (attempt 2) #593

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions code/game/machinery/telecomms/machines/receiver.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@
if(!is_freq_listening(signal))
return

// send the signal to the hub if possible, or a bus otherwise
if(!relay_information(signal, /obj/machinery/telecomms/hub))
relay_information(signal, /obj/machinery/telecomms/bus)
// Make a copy of the signal so that other recievers can still recieve this signal
var/datum/signal/subspace/signal_copy = signal.copy()

// Signal has been recieved, so remove receiving levels. This list will be used later on to determine broadcasting levels.
signal_copy.levels = list()

// Send the signal to a hub if possible, or a bus otherwise.
if(!relay_information(signal_copy, /obj/machinery/telecomms/hub))
relay_information(signal_copy, /obj/machinery/telecomms/bus)

use_power(idle_power_usage)

Expand Down
Loading