Merge pull request #7958 from Atermonera/examine_autoexpansion

Fixes context-menu examine expanding incorrect target
This commit is contained in:
Atermonera
2021-03-10 10:36:17 -09:00
committed by VirgoBot
parent e5adf9a49a
commit 3e3522f97d
5 changed files with 22 additions and 28 deletions
-19
View File
@@ -194,25 +194,6 @@
client.eye = loc
return TRUE
//mob verbs are faster than object verbs. See http://www.byond.com/forum/?post=1326139&page=2#comment8198716 for why this isn't atom/verb/examine()
/mob/verb/examinate(atom/A as mob|obj|turf in view())
set name = "Examine"
set category = "IC"
if((is_blind(src) || usr.stat) && !isobserver(src))
to_chat(src, "<span class='notice'>Something is there but you can't see it.</span>")
return 1
//Could be gone by the time they finally pick something
if(!A)
return 1
face_atom(A)
var/list/results = A.examine(src)
if(!results || !results.len)
results = list("You were unable to examine that. Tell a developer!")
to_chat(src, jointext(results, "<br>"))
/mob/verb/pointed(atom/A as mob|obj|turf in view())
set name = "Point To"
set category = "Object"