mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Leaving viewers() will now break a lock
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user