Changes check to an isnull rather than a truth test

This allows the client to detect the difference between a blank and someone pressing cancel.
This commit is contained in:
JimTheCactus
2014-07-27 14:44:05 -04:00
committed by ZomgPonies
parent b23f424ed1
commit 7304682f62
+1 -1
View File
@@ -947,7 +947,7 @@ datum/preferences
switch(href_list["preference"])
if("name")
var/raw_name = input(user, "Choose your character's name:", "Character Preference") as text|null
if (raw_name) // Check to ensure that the user entered text (rather than cancel.)
if (!isnull(raw_name)) // Check to ensure that the user entered text (rather than cancel.)
var/new_name = reject_bad_name(raw_name)
if(new_name)
real_name = new_name