Unify datum var definitions

Inspired by https://github.com/tgstation/tgstation/pull/29636
Also consolidated some sideways overridden /datum/Delete() here to reduce proc-call overhead.
This commit is contained in:
Leshana
2017-12-28 12:51:19 -05:00
parent 3c2dac2e01
commit 66e9d9cfdf
4 changed files with 23 additions and 17 deletions

View File

@@ -1,10 +1,3 @@
/datum
var/weakref/weakref
/datum/Destroy()
weakref = null // Clear this reference to ensure it's kept for as brief duration as possible.
. = ..()
//obtain a weak reference to a datum
/proc/weakref(datum/D)
if(!istype(D))