mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-22 03:26:21 +01:00
Added more sanity checks to the gun code.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user