From e85ddd3b9ae0f923264b04affd2b8fb20a522f9c Mon Sep 17 00:00:00 2001 From: Segrain Date: Sun, 25 Aug 2013 09:27:05 +0300 Subject: [PATCH] Fix for unisex hairstyles. --- code/__HELPERS/mobs.dm | 4 ++-- code/modules/client/preferences.dm | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/__HELPERS/mobs.dm b/code/__HELPERS/mobs.dm index df7e4f1890..7d345e1ea2 100644 --- a/code/__HELPERS/mobs.dm +++ b/code/__HELPERS/mobs.dm @@ -4,7 +4,7 @@ proc/random_hair_style(gender, species = "Human") var/list/valid_hairstyles = list() for(var/hairstyle in hair_styles_list) var/datum/sprite_accessory/S = hair_styles_list[hairstyle] - if(gender != S.gender) + if(gender != S.gender && S.gender != NEUTER) continue if(!(species in S.species_allowed)) continue @@ -21,7 +21,7 @@ proc/random_facial_hair_style(gender, species = "Human") var/list/valid_facialhairstyles = list() for(var/facialhairstyle in facial_hair_styles_list) var/datum/sprite_accessory/S = facial_hair_styles_list[facialhairstyle] - if(gender != S.gender) + if(gender != S.gender && S.gender != NEUTER) continue if(!(species in S.species_allowed)) continue diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index f4cb339f04..c15bfb3f8d 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -822,7 +822,7 @@ datum/preferences var/list/valid_hairstyles = list() for(var/hairstyle in hair_styles_list) var/datum/sprite_accessory/S = hair_styles_list[hairstyle] - if(gender != S.gender) + if(gender != S.gender && S.gender != NEUTER) continue if( !(species in S.species_allowed)) continue @@ -838,7 +838,7 @@ datum/preferences var/list/valid_facialhairstyles = list() for(var/facialhairstyle in facial_hair_styles_list) var/datum/sprite_accessory/S = facial_hair_styles_list[facialhairstyle] - if(gender != S.gender) + if(gender != S.gender && S.gender != NEUTER) continue if( !(species in S.species_allowed)) continue @@ -921,7 +921,7 @@ datum/preferences var/list/valid_facialhairstyles = list() for(var/facialhairstyle in facial_hair_styles_list) var/datum/sprite_accessory/S = facial_hair_styles_list[facialhairstyle] - if(gender != S.gender) + if(gender != S.gender && S.gender != NEUTER) continue if( !(species in S.species_allowed)) continue