From bcc07d3296945483dafe1e684496a00b07c6b1a3 Mon Sep 17 00:00:00 2001 From: mwerezak Date: Sat, 16 Aug 2014 13:06:56 -0400 Subject: [PATCH] Fixes machines being able to put the radio controller to sleep --- code/controllers/communications.dm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/controllers/communications.dm b/code/controllers/communications.dm index f534a4ec46..ab51bf8ea3 100644 --- a/code/controllers/communications.dm +++ b/code/controllers/communications.dm @@ -228,7 +228,14 @@ var/global/datum/controller/radio/radio_controller continue if(start_point.z!=end_point.z || get_dist(start_point, end_point) > range) continue - device.receive_signal(signal, TRANSMISSION_RADIO, frequency) + + //allow sequential signals before round start, so that every air alarm sounding off at once doesn't cause trouble. + if(!ticker || ticker.current_state < 3) + device.receive_signal(signal, TRANSMISSION_RADIO, frequency) + else + spawn(0) + if(device) //in case the device got destroyed somehow + device.receive_signal(signal, TRANSMISSION_RADIO, frequency) /datum/radio_frequency/proc/add_listener(obj/device as obj, var/filter as text|null) if (!filter)