Gun fixes.

You die, you are zoomed out

You have welding equipment on, you can't zoom in.
This commit is contained in:
Ccomp5950
2014-01-22 23:40:32 -06:00
parent fbcf162416
commit b260d511fb
2 changed files with 10 additions and 0 deletions
@@ -1192,6 +1192,13 @@
see_in_dark = 8
if(!druggy) see_invisible = SEE_INVISIBLE_LEVEL_TWO
if(healths) healths.icon_state = "health7" //DEAD healthmeter
if(client)
if(client.view != world.view)
if(locate(/obj/item/weapon/gun/energy/sniperrifle, contents))
var/obj/item/weapon/gun/energy/sniperrifle/s = locate() in src
if(s.zoom)
s.zoom()
else
sight &= ~(SEE_TURFS|SEE_MOBS|SEE_OBJS)
see_in_dark = species.darksight