Fixed radios not working if you have a PDA in your wear_id slot.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@597 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2010-12-12 21:33:43 +00:00
parent 2a7bbec0a7
commit 20cbb1b800
3 changed files with 13 additions and 8 deletions
+5 -3
View File
@@ -28,11 +28,13 @@
var/alt_name = ""
if (istype(src, /mob/living/carbon/human) && src.name != src.real_name)
if (src:wear_id)
var/obj/item/weapon/card/id/id = src:wear_id
var/id
if(istype(src:wear_id, /obj/item/device/pda))
var/obj/item/device/pda/pda = src:wear_id
id = pda.id
alt_name = " (as [id:registered])"
id = pda.owner
else
id = src:wear_id.registered
alt_name = " (as [id])"
else
alt_name = " (as Unknown)"