Added more sanity checks to the gun code.

This commit is contained in:
SkyMarshal
2012-03-01 22:15:03 -07:00
parent fd1a3bd6b8
commit ee9146cda4
4 changed files with 27 additions and 2 deletions
+7
View File
@@ -277,6 +277,13 @@
back = null
else if (W == wear_mask)
wear_mask = null
if(istype(W,/obj/item/weapon/gun))
var/obj/item/weapon/gun/gun = W
if(gun.target)
gun.target.NotTargeted(gun)
del(item_use_icon)
del(gun_move_icon)
del(gun_run_icon)
update_clothing()
return