Seems the old player panel had a few issues that did not crop up in my tests.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2852 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
mport2004@gmail.com
2011-12-29 08:17:54 +00:00
parent 32e1640df3
commit 6d91ce670e

View File

@@ -365,18 +365,12 @@
dat += "<td>Unknown</td>"
if(M.mind && M.mind.assigned_role) // Adds a column to Player Panel that shows their current job.
if(istype(M,/mob/living/carbon/human))
var/mob/living/carbon/human/H = M
if (H.wear_id)
var/obj/item/weapon/card/id/id = H.wear_id
if(M.mind.assigned_role == id.assignment) // Polymorph
dat += "<td>[M.mind.assigned_role]</td>"
if(H.mind && H.mind.assigned_role)
dat += "<td>[H.mind.assigned_role]</td>"
else
dat += "<td>[M.mind.assigned_role] ([id.assignment])"
else
dat += "<td>[M.mind.assigned_role] (No ID)</td>"
else
dat += "<td>No Assigned Role</td>"
dat += "<td>NA</td>"
dat += {"<td>[(M.client ? "[M.client]" : "No client")]</td>