Fix some istypes to handle clients properly

This commit is contained in:
MrStonedOne
2016-09-08 07:58:20 -07:00
parent d0759f03fe
commit 56db6396e9
2 changed files with 16 additions and 16 deletions
+8 -8
View File
@@ -471,6 +471,10 @@ var/list/VVckey_edit = list("key", "ckey")
var_value = "\icon[var_value]"
class = "icon"
else if(istype(var_value,/client))
usr << "Variable appears to be <b>CLIENT</b>."
class = "cancel"
else if(istype(var_value,/atom) || istype(var_value,/datum))
usr << "Variable appears to be <b>TYPE</b>."
class = "type"
@@ -479,10 +483,6 @@ var/list/VVckey_edit = list("key", "ckey")
usr << "Variable appears to be <b>LIST</b>."
class = "list"
else if(istype(var_value,/client))
usr << "Variable appears to be <b>CLIENT</b>."
class = "cancel"
else
usr << "Variable appears to be <b>FILE</b>."
class = "file"
@@ -535,6 +535,10 @@ var/list/VVckey_edit = list("key", "ckey")
var_value = "\icon[var_value]"
default = "icon"
else if(istype(var_value,/client))
usr << "Variable appears to be <b>CLIENT</b>."
default = "cancel"
else if(istype(var_value,/atom) || istype(var_value,/datum))
usr << "Variable appears to be <b>TYPE</b>."
default = "type"
@@ -543,10 +547,6 @@ var/list/VVckey_edit = list("key", "ckey")
usr << "Variable appears to be <b>LIST</b>."
default = "list"
else if(istype(var_value,/client))
usr << "Variable appears to be <b>CLIENT</b>."
default = "cancel"
else
usr << "Variable appears to be <b>FILE</b>."
default = "file"