Update point.dm (#20324)

This commit is contained in:
Vi3trice
2023-02-08 15:15:07 -05:00
committed by GitHub
parent 71b8dca44f
commit 8119ab13fb
+2 -4
View File
@@ -104,15 +104,13 @@
if(istype(A, /obj/effect/temp_visual/point) || istype(A, /atom/movable/emissive_blocker))
return FALSE
changeNext_move(CLICK_CD_POINT)
DEFAULT_QUEUE_OR_CALL_VERB(VERB_CALLBACK(src, PROC_REF(run_pointed), A))
/// possibly delayed verb that finishes the pointing process starting in [/mob/verb/pointed()].
/// either called immediately or in the tick after pointed() was called, as per the [DEFAULT_QUEUE_OR_CALL_VERB()] macro
/mob/proc/run_pointed(atom/A)
if(client && !(A in view(client.view, src)))
return FALSE
changeNext_move(CLICK_CD_POINT)
if(A.loc in src) // Object is inside a container on the mob. It's not part of the verb's list since it's not in view and requires middle clicking.
point_at(A)
return TRUE