Fixes Laptop ID Card Removal

Fixes a bug with the removal of an ID card from laptops when you use the
Eject ID verb. Now, it will actually remove the ID card, not just say it
did.

🆑 Twinmold
Fix: Fixes removing ID cards from laptops with the Eject ID verb.
/🆑
This commit is contained in:
Twinmold
2016-07-20 01:14:09 -05:00
parent 22484a4073
commit 99f857fd6a
+2 -1
View File
@@ -101,14 +101,15 @@
var/obj/item/weapon/card/id/card
if(C.reader)
card = C.reader
C.remove_reader(usr)
else if(C.writer)
card = C.writer
C.remove_writer(usr)
else
to_chat(usr, "There is nothing to remove from the laptop card port.")
return
to_chat(usr, "You remove [card] from the laptop.")
C.remove(card)
/obj/machinery/computer3/laptop