mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Fixes machines being able to put the radio controller to sleep
This commit is contained in:
@@ -228,6 +228,13 @@ var/global/datum/controller/radio/radio_controller
|
|||||||
continue
|
continue
|
||||||
if(start_point.z!=end_point.z || get_dist(start_point, end_point) > range)
|
if(start_point.z!=end_point.z || get_dist(start_point, end_point) > range)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
//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)
|
device.receive_signal(signal, TRANSMISSION_RADIO, frequency)
|
||||||
|
|
||||||
/datum/radio_frequency/proc/add_listener(obj/device as obj, var/filter as text|null)
|
/datum/radio_frequency/proc/add_listener(obj/device as obj, var/filter as text|null)
|
||||||
|
|||||||
Reference in New Issue
Block a user