Leaving viewers() will now break a lock

This commit is contained in:
tigercat2000
2018-04-27 13:48:56 -07:00
parent caccc13e82
commit 3d55fb6a83
+2 -1
View File
@@ -174,7 +174,8 @@
if(!isnum(forced_look))
var/atom/A = locateUID(forced_look)
if(istype(A))
if(get_dist(src, A) > (client ? client.view : world.view))
var/view = client ? client.view : world.view
if(get_dist(src, A) > view || !(src in viewers(view, A)))
forced_look = null
to_chat(src, "<span class='notice'>Your direction target has left your view, you are no longer facing anything.</span>")
return