Fixes workaround if someone has a savefile and is taken off the alien whitelist.

This commit is contained in:
Erthilo
2012-05-21 14:23:32 +01:00
parent d8a2e17f3a
commit 3c1d50232a
3 changed files with 6 additions and 4 deletions

View File

@@ -393,7 +393,7 @@
proc/create_character()
spawning = 1
var/mob/living/carbon/human/new_character // var/path/to/object/varname
if(preferences.species == "Tajaran")
if((preferences.species == "Tajaran") && (is_alien_whitelisted(src, "Tajaran")))
new_character = new /mob/living/carbon/human/tajaran(loc) // varname = new /path/to/object(location_to_spawn_at)
else
new_character = new /mob/living/carbon/human(loc)
@@ -407,7 +407,7 @@
preferences.randomize_appearance_for(new_character)
else
preferences.copy_to(new_character)
if(preferences.species == "Soghun") //This probably shouldn't be here, but I can't think of any other way
if((preferences.species == "Soghun") && (is_alien_whitelisted(src, "Soghun"))) //This probably shouldn't be here, but I can't think of any other way
new_character.mutantrace = "lizard"
src << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1)

View File

@@ -705,9 +705,9 @@ datum/preferences
if("input")
var/list/new_species = list("Human")
if(config.usealienwhitelist) //If we're using the whitelist, make sure to check it!
if((is_alien_whitelisted(user, "Soghun")) || ((user.client) && (user.client.holder) && (user.client.holder.level) && (user.client.holder.level >= 5))) //Check for Soghun and admins
if(is_alien_whitelisted(user, "Soghun")) //Check for Soghun and admins
new_species += "Soghun"
if((is_alien_whitelisted(user, "Tajaran")) || ((user.client) && (user.client.holder) && (user.client.holder.level) && (user.client.holder.level >= 5))) //Check for Tajaran
if(is_alien_whitelisted(user, "Tajaran")) //Check for Tajaran
new_species += "Tajaran"
else //Not using the whitelist? Aliens for everyone!
new_species += "Tajaran"