Uses more QDEL_NULLs

This commit is contained in:
Sam
2017-06-15 00:49:00 +01:00
parent 5131f91725
commit d0dde4f3d7
34 changed files with 65 additions and 118 deletions
+3 -5
View File
@@ -43,8 +43,7 @@
H.set_species(H.species.primitive_form)
if(H.hud_used)
qdel(H.hud_used)
H.hud_used = null
QDEL_NULL(H.hud_used)
if(H.client)
H.hud_used = new /datum/hud/monkey(H, ui_style2icon(H.client.prefs.UI_style), H.client.prefs.UI_style_color, H.client.prefs.UI_style_alpha)
@@ -90,12 +89,11 @@
H.name = H.real_name
if(H.hud_used)
qdel(H.hud_used)
H.hud_used = null
QDEL_NULL(H.hud_used)
if(H.client)
H.hud_used = new /datum/hud/human(H, ui_style2icon(H.client.prefs.UI_style), H.client.prefs.UI_style_color, H.client.prefs.UI_style_alpha)
to_chat(H, "<B>You are now a [H.species.name].</B>")
return H
return H