Makes all global variables handled by the GLOB controller (#13152)

* Handlers converted, now to fix 3532 compile errors

* 3532 compile fixes later, got runtimes on startup

* Well the server loads now atleast

* Take 2

* Oops
This commit is contained in:
AffectedArc07
2020-03-20 21:56:37 -06:00
committed by GitHub
parent c8dbd0190e
commit 210f8badf4
667 changed files with 4243 additions and 4240 deletions
@@ -1,4 +1,4 @@
var/global/static/ntnrc_uid = 0
GLOBAL_VAR_INIT(ntnrc_uid, 0)
/datum/ntnet_conversation
var/id = null
@@ -9,15 +9,15 @@ var/global/static/ntnrc_uid = 0
var/password
/datum/ntnet_conversation/New()
id = ntnrc_uid
ntnrc_uid++
if(ntnet_global)
ntnet_global.chat_channels.Add(src)
id = GLOB.ntnrc_uid
GLOB.ntnrc_uid++
if(GLOB.ntnet_global)
GLOB.ntnet_global.chat_channels.Add(src)
..()
/datum/ntnet_conversation/Destroy()
if(ntnet_global)
ntnet_global.chat_channels.Remove(src)
if(GLOB.ntnet_global)
GLOB.ntnet_global.chat_channels.Remove(src)
return ..()
/datum/ntnet_conversation/proc/add_message(message, username)