Skip to content

Commit

Permalink
I saved security
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowy1237 committed Oct 23, 2024
1 parent 6ac180f commit 543d231
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -813,14 +813,15 @@
#undef LYING_DOWN_FIRE_DELAY_AND_RECOIL_STAT_MULTIPLIER
#undef LYING_DOWN_ACCURACY_STAT_MULTIPLIER

/obj/item/gun/mob_can_equip(mob/user, slot, disable_warning, ignore_blocked)
//Cannot equip wielded items.
/obj/item/gun/on_slotmove(mob/user, slot, disable_warning, ignore_blocked)
. = ..()
if(!.)
return
if(wielded)
unwield()
var/obj/item/offhand/O = user.get_inactive_hand()
if(istype(O))
O.unwield()
return ..()

/obj/item/gun/throw_at()
..()
Expand Down

0 comments on commit 543d231

Please sign in to comment.