From a2ec0d43f11802c53b193da39af32e0883bda1c2 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Mon, 10 Apr 2017 14:39:09 -0400 Subject: [PATCH] Fix 'Spawn Character' DNA Made spawned characters always use male sprites and not have accurate DNA. Also would runtime if you picked the option to not put a mind in, as it assumed there would be one. --- code/modules/admin/verbs/randomverbs.dm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index 8ffcc88692..38a30d88e7 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -461,14 +461,17 @@ Traitors and the like can also be revived with the previous role mostly intact. //Write the appearance and whatnot out to the character picked_client.prefs.copy_to(new_character) + if(new_character.dna) + new_character.dna.ResetUIFrom(new_character) + new_character.sync_organ_dna() if(inhabit) new_character.key = player_key - - //Were they any particular special role? If so, copy. - var/datum/antagonist/antag_data = get_antag_data(new_character.mind.special_role) - if(antag_data) - antag_data.add_antagonist(new_character.mind) - antag_data.place_mob(new_character) + //Were they any particular special role? If so, copy. + if(new_character.mind) + var/datum/antagonist/antag_data = get_antag_data(new_character.mind.special_role) + if(antag_data) + antag_data.add_antagonist(new_character.mind) + antag_data.place_mob(new_character) //If desired, apply equipment. if(equipment)