More runtime errors

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1156 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2011-03-04 00:38:01 +00:00
parent 9e1d7cfb8e
commit ad58cb51e4
3 changed files with 7 additions and 0 deletions
+3
View File
@@ -625,6 +625,9 @@ var/showadminmessages = 1
if (href_list["adminplayeropts"])
var/mob/M = locate(href_list["adminplayeropts"])
if(!M)
usr << "You seem to be selecting a mob that doesn't exist."
return
var/dat = "<html><head><title>Options for [M.key]</title></head>"
var/foo = "\[ "
if (ismob(M) && M.client)
@@ -900,6 +900,9 @@
if (src.head)
for(var/i=1, i<=src.head.allowed.len, i++)
// world << "[src.head.allowed[i]] and [W.type]"
if(!W)
src << "The code is under the impression that the item you're trying to stick in your hat doesn't exist."
return
if (findtext("[W.type]","[src.head.allowed[i]]") || istype(W, /obj/item/weapon/pen))
confirm = 1
break