Fix NTNet Relays to be constructible/de-constructible

- Circuit boards should use type paths not strings.
- Use standard default component creation pattern.
- Fix race condition between /datum/ntnet/New and NTNet relay Initialize()
This commit is contained in:
Leshana
2020-02-12 00:03:27 -05:00
parent 42d25f823d
commit b4556a3aee
3 changed files with 18 additions and 30 deletions
@@ -31,9 +31,10 @@ var/global/datum/ntnet/ntnet_global = new()
/datum/ntnet/New()
if(ntnet_global && (ntnet_global != src))
ntnet_global = src // There can be only one.
for(var/obj/machinery/ntnet_relay/R in machines)
relays.Add(R)
R.NTNet = src
if (SSatoms && SSatoms.initialized > INITIALIZATION_INSSATOMS)
for(var/obj/machinery/ntnet_relay/R in machines)
relays.Add(R)
R.NTNet = src
build_software_lists()
build_news_list()
build_emails_list()