From ef3d2a635cf4f91f83d9befec5dc53be3da178ce Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Sat, 18 Feb 2017 02:21:05 -0500 Subject: [PATCH] Adds QDEL_NULL to qdel and null a variable (#24099) * Adds QDEL_N to qdel and null a variable * Booooo --- code/__HELPERS/unsorted.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index e272f5073cc..33b966e3335 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -1286,6 +1286,7 @@ proc/pick_closest_path(value, list/matches = get_fancy_list_of_atom_types()) #define RANDOM_COLOUR (rgb(rand(0,255),rand(0,255),rand(0,255))) #define QDEL_IN(item, time) addtimer(CALLBACK(GLOBAL_PROC, .proc/qdel, item), time, TIMER_STOPPABLE) +#define QDEL_NULL(item) qdel(item); item = null /proc/random_nukecode() var/val = rand(0, 99999)