Merge pull request #2142 from Citadel-Station-13/upstream-merge-29493

[MIRROR] Fixes guns staying zoomed in after being unequipped
This commit is contained in:
LetterJay
2017-07-26 19:52:19 -05:00
committed by GitHub
+5
View File
@@ -91,6 +91,11 @@
else
to_chat(user, "It doesn't have a firing pin installed, and won't fire.")
/obj/item/weapon/gun/equipped(mob/living/user, slot)
. = ..()
if(zoomable && user.get_active_held_item() != src)
zoom(user, FALSE) //we can only stay zoomed in if it's in our hands
//called after the gun has successfully fired its chambered ammo.
/obj/item/weapon/gun/proc/process_chamber()
return 0