From cfaada473b67b045517d3d3a8029cea89a97d434 Mon Sep 17 00:00:00 2001 From: Yoshax Date: Sun, 14 Aug 2016 16:10:07 +0100 Subject: [PATCH] Fixes change appearance not working for other species --- code/game/antagonist/antagonist_update.dm | 5 ++++- code/modules/mob/living/carbon/human/appearance.dm | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code/game/antagonist/antagonist_update.dm b/code/game/antagonist/antagonist_update.dm index dbbae8a5e1..3db7cd4fbb 100644 --- a/code/game/antagonist/antagonist_update.dm +++ b/code/game/antagonist/antagonist_update.dm @@ -14,7 +14,10 @@ if(!preserve_appearance && (flags & ANTAG_SET_APPEARANCE)) spawn(3) var/mob/living/carbon/human/H = player.current - if(istype(H)) H.change_appearance(APPEARANCE_ALL, H.loc, H, valid_species, state = z_state) + if(istype(H)) + for(var/I in valid_species) + world << "Species: [I]" + H.change_appearance(APPEARANCE_ALL, H.loc, H, species_whitelist = valid_species, state = z_state) return player.current /datum/antagonist/proc/update_access(var/mob/living/player) diff --git a/code/modules/mob/living/carbon/human/appearance.dm b/code/modules/mob/living/carbon/human/appearance.dm index c3813000bb..2d236bae30 100644 --- a/code/modules/mob/living/carbon/human/appearance.dm +++ b/code/modules/mob/living/carbon/human/appearance.dm @@ -149,10 +149,10 @@ continue if(blacklist.len && (current_species_name in blacklist)) continue - if((current_species.spawn_flags & SPECIES_IS_WHITELISTED) && !is_alien_whitelisted(src, current_species_name)) + if((current_species.spawn_flags & SPECIES_IS_WHITELISTED) && !is_alien_whitelisted(src, current_species)) continue - valid_species += current_species_name + valid_species += current_species return valid_species