fix ntnet circuit components (#60917) (#7633)

* fix ntnet

* fix typos and switcheroos

* whoops, tracked a test circuit json.

Co-authored-by: Gurkenglas <gurkenglas@hotmail.de>
This commit is contained in:
SkyratBot
2021-08-19 17:44:07 +02:00
committed by GitHub
parent a04e7e45ec
commit af632bec7f
8 changed files with 24 additions and 39 deletions

View File

@@ -140,7 +140,8 @@ SUBSYSTEM_DEF(networks)
/// Check if we are a list. If so process the list
if(islist(current.receiver_id)) // are we a broadcast list
var/list/receivers = current.receiver_id
var/receiver_id = receivers[receivers.len--] // pop it
var/receiver_id = receivers[receivers.len] // pop it
receivers.len--
_process_packet(receiver_id, current)
if(receivers.len == 0) // pop it if done
count_broadcasts_packets++