Fixes adding antag huds to newplayers. (#46555)

This commit is contained in:
AnturK
2019-09-17 16:53:58 +02:00
committed by Emmett Gaines
parent 730d96ad06
commit 06fd043ab6
2 changed files with 6 additions and 3 deletions
@@ -20,9 +20,11 @@
CRASH("join_hud(): [M] ([M.type]) is not a mob!")
if(mind_hud) //note: please let this runtime if a mob has no mind, as mindless mobs shouldn't be getting antagged
mind_hud.leave_hud(M)
add_to_hud(M)
if(self_visible)
add_hud_to(M)
if(ANTAG_HUD in M.hud_possible) //Current mob does not support antag huds ie newplayer
add_to_hud(M)
if(self_visible)
add_hud_to(M)
if (!team_hud)
M.mind.antag_hud = src
@@ -10,6 +10,7 @@
density = FALSE
stat = DEAD
hud_possible = list()
var/mob/living/new_character //for instant transfer once the round is set up