From 48bd33c65ee3169eb1459d77fd3d4a48aad55286 Mon Sep 17 00:00:00 2001 From: "uhangi@gmail.com" Date: Sun, 27 Nov 2011 13:36:51 +0000 Subject: [PATCH] Fixed a bug where you could conceal things in PDAs. ..really sad I can't abuse this. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2563 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/objects/devices/PDA/PDA.dm | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/code/game/objects/devices/PDA/PDA.dm b/code/game/objects/devices/PDA/PDA.dm index ac104d6ba75..d7b2b481b32 100644 --- a/code/game/objects/devices/PDA/PDA.dm +++ b/code/game/objects/devices/PDA/PDA.dm @@ -655,15 +655,16 @@ id = I else var/obj/item/weapon/card/I = user.equipped() - if(id)//Get id and replace it. - user.drop_item() - I.loc = src - user.put_in_hand(id) - id = I - else//Insert id. - user.drop_item() - I.loc = src - id = I + if (istype(I, /obj/item/weapon/card/id) && I:registered) + if(id)//Get id and replace it. + user.drop_item() + I.loc = src + user.put_in_hand(id) + id = I + else//Insert id. + user.drop_item() + I.loc = src + id = I return // access to status display signals