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
@@ -389,14 +389,14 @@ body
else if (isfile(value))
html += "[html_encode(name)] = <span class='value'>'[value]'</span>"
else if (istype(value, /client))
var/client/C = value
html += "<a href='?_src_=vars;Vars=\ref[value]'>[html_encode(name)] \ref[value]</a> = [C] [C.type]"
else if (istype(value, /datum))
var/datum/D = value
html += "<a href='?_src_=vars;Vars=\ref[value]'>[html_encode(name)] \ref[value]</a> = [D.type]"
else if (istype(value, /client))
var/client/C = value
html += "<a href='?_src_=vars;Vars=\ref[value]'>[html_encode(name)] \ref[value]</a> = [C] [C.type]"
//
else if (istype(value, /list))
var/list/L = value
html += "[html_encode(name)] = /list ([L.len])"
@@ -529,8 +529,8 @@ body
return
var/D = locate(href_list["datumedit"])
if(!istype(D,/datum) && !istype(D,/client))
usr << "This can only be used on instances of types /client or /datum"
if(!istype(D,/datum))
usr << "This can only be used on datums"
return
modify_variables(D, href_list["varnameedit"], 1)
@@ -540,8 +540,8 @@ body
return
var/D = locate(href_list["datumchange"])
if(!istype(D,/datum) && !istype(D,/client))
usr << "This can only be used on instances of types /client or /datum"
if(!istype(D,/datum))
usr << "This can only be used on datums"
return
modify_variables(D, href_list["varnamechange"], 0)