[MIRROR] Fix observers not being able to read from afar (#2413)

* Fix observers not being able to read from afar (#55841)

From the examine() code it's clear that this was intended, just a check
in `ui_status` meant that the range check was being applied to them
anyway.

* Fix observers not being able to read from afar

Co-authored-by: coiax <yellowbounder@gmail.com>
This commit is contained in:
SkyratBot
2021-01-01 14:34:28 +01:00
committed by GitHub
co-authored by coiax
parent f7447a6d1d
commit 7b23dd4c5b
+1 -1
View File
@@ -152,7 +152,7 @@
// Are we on fire? Hard ot read if so
if(resistance_flags & ON_FIRE)
return UI_CLOSE
if(!in_range(user,src))
if(!in_range(user, src) && !isobserver(user))
return UI_CLOSE
if(user.incapacitated(TRUE, TRUE) || (isobserver(user) && !isAdminGhostAI(user)))
return UI_UPDATE