Fixes laser hit sounds causing all sounds to stop. (#13590)

This commit is contained in:
sood
2017-01-22 16:39:09 -08:00
committed by clusterfack
parent 6eece59755
commit 55ff933718

View File

@@ -139,7 +139,8 @@ var/list/impact_master = list()
L.apply_effects(stun, weaken, paralyze, irradiate, stutter, eyeblur, drowsy, agony, blocked) // add in AGONY!
if(jittery)
L.Jitter(jittery)
playsound(loc, hitsound, 35, 1)
if(!isnull(hitsound))
playsound(loc, hitsound, 35, 1)
return 1
/obj/item/projectile/proc/check_fire(var/mob/living/target as mob, var/mob/living/user as mob) //Checks if you can hit them or not.