Tweaks to previous commits.

This commit is contained in:
Zuhayr
2015-12-03 22:56:19 -08:00
committed by NullSnapshot
parent d94ece66f1
commit 5561964204
6 changed files with 26 additions and 20 deletions
+3 -2
View File
@@ -1184,8 +1184,9 @@ datum/preferences
var/raw_name = input(user, "Choose your character's name:", "Character Preference") as text|null
if (!isnull(raw_name)) // Check to ensure that the user entered text (rather than cancel.)
var/new_name
if(species == "Machine")
new_name = sanitizeName(raw_name,,1)
var/datum/species/S = all_species[species]
if(istype(S))
new_name = S.sanitize_name(raw_name)
else
new_name = sanitizeName(raw_name)
if(new_name)