From 0bb4bb780796f0319cf0be124d901831b62c865d Mon Sep 17 00:00:00 2001 From: Wildkins Date: Mon, 19 Dec 2022 09:29:09 -0500 Subject: [PATCH] Fix broadcasters having no overmap range (#15370) --- code/game/machinery/telecomms/machines/allinone.dm | 2 +- code/game/machinery/telecomms/machines/broadcaster.dm | 1 + code/game/objects/items/devices/radio/radio.dm | 2 +- html/changelogs/johnwildkins-radiofix.yml | 6 ++++++ 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 html/changelogs/johnwildkins-radiofix.yml diff --git a/code/game/machinery/telecomms/machines/allinone.dm b/code/game/machinery/telecomms/machines/allinone.dm index 8526b287d4a..7be10305fd2 100644 --- a/code/game/machinery/telecomms/machines/allinone.dm +++ b/code/game/machinery/telecomms/machines/allinone.dm @@ -11,7 +11,7 @@ idle_power_usage = 0 active_power_usage = 0 produces_heat = FALSE - overmap_range = 2 // AIOs aren't true relays + overmap_range = 2 var/away_aio = FALSE var/list/recent_broadcasts diff --git a/code/game/machinery/telecomms/machines/broadcaster.dm b/code/game/machinery/telecomms/machines/broadcaster.dm index 248f69b5a44..4d3951dbb0c 100644 --- a/code/game/machinery/telecomms/machines/broadcaster.dm +++ b/code/game/machinery/telecomms/machines/broadcaster.dm @@ -15,6 +15,7 @@ produces_heat = FALSE delay = 7 circuitboard = "/obj/item/circuitboard/telecomms/broadcaster" + overmap_range = 2 var/list/recent_broadcasts /obj/machinery/telecomms/broadcaster/Initialize(mapload) diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index d8042a35727..bb39e13c1c1 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -457,7 +457,7 @@ var/global/list/default_medbay_channels = list( // If we're here, the signal was never processed. Proceed with mundane broadcast: signal.data["compression"] = 0 signal.transmission_method = TRANSMISSION_RADIO - signal.levels = list(T.z) + signal.levels = GetConnectedZlevels(T.z) signal.broadcast() /obj/item/device/radio/hear_talk(mob/M as mob, msg, var/verb = "says", var/datum/language/speaking = null) diff --git a/html/changelogs/johnwildkins-radiofix.yml b/html/changelogs/johnwildkins-radiofix.yml new file mode 100644 index 00000000000..d38c0facadd --- /dev/null +++ b/html/changelogs/johnwildkins-radiofix.yml @@ -0,0 +1,6 @@ +author: JohnWildkins + +delete-after: True + +changes: + - bugfix: "Fixed subspace broadcasters having no overmap range, thus capturing messages and not sending them to away sites near the Horizon."