assorted tcomms housekeeping

split some files, merged some files, cleaned some code
removed spurious listening level toggle from relays
This commit is contained in:
Spookerton
2023-12-29 18:56:36 +00:00
parent 6d865d9859
commit 87d9ddf0bd
25 changed files with 1934 additions and 2298 deletions
+1 -3
View File
@@ -144,8 +144,6 @@
return
last_text = world.time
// check if telecomms I/O route 1459 is stable
//var/telecomms_intact = telecomms_process(P.owner, owner, t)
var/obj/machinery/message_server/useMS = null
if(message_servers)
for(var/A in message_servers)
@@ -244,4 +242,4 @@
for(var/obj/item/pda/target in targets)
var/datum/data/pda/app/messenger/P = target.find_program(/datum/data/pda/app/messenger)
if(P)
P.receive_message(modified_message, "\ref[M]")
P.receive_message(modified_message, "\ref[M]")
@@ -7,6 +7,10 @@
/n_Interpreter/TCS_Interpreter
var/datum/TCS_Compiler/Compiler
/n_Interpreter/TCS_Interpreter/Destroy()
QDEL_NULL(Compiler)
return ..()
/n_Interpreter/TCS_Interpreter/HandleError(runtimeError/e)
Compiler.Holder.add_entry(e.ToString(), "Execution Error")
@@ -15,6 +19,11 @@
var/obj/machinery/telecomms/server/Holder // the server that is running the code
var/ready = 1 // 1 if ready to run code
/datum/TCS_Compiler/Destroy()
QDEL_NULL(interpreter)
Holder = null
return ..()
/** Proc: Compile
* Compile a raw block of text into a program
* Returns: List of errors
@@ -278,4 +287,3 @@
var/pass = S.relay_information(newsign, /obj/machinery/telecomms/hub)
if(!pass)
S.relay_information(newsign, /obj/machinery/telecomms/broadcaster) // send this simple message to broadcasters