Light Shall Not Pass!

Prevents laser points from shining light through the hecking wall. Ported from https://github.com/VOREStation/VOREStation/pull/5095
This commit is contained in:
TheFurryFeline
2019-04-18 21:11:53 -04:00
committed by GitHub
parent 1a339cdcde
commit 0cbb172739
@@ -71,6 +71,8 @@
/obj/item/device/laser_pointer/proc/laser_act(var/atom/target, var/mob/living/user)
if(!(user in (viewers(world.view,target))))
return
if(!(target in view(user, world.view))) ///TFF 18/4/19: VOREStation port - prevent laser light reaching the other side of a wall.
return
if(!(world.time - last_used_time >= cooldown))
return
if (!diode)