mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Fixes syndieborg op-pinpointer runtime
This thing still doesn't actually do any distance checks to find out who the "nearest operative" is, but I'm just here for the runtime. Also, I fixed the thing spawning never-ending threads, because whyyyy
This commit is contained in:
@@ -366,12 +366,15 @@
|
||||
for(var/mob/living/carbon/M in mob_list)
|
||||
if(M.mind in ticker.mode.syndicates)
|
||||
nearest_op = M
|
||||
active = 0
|
||||
icon_state = "pinoff"
|
||||
|
||||
/obj/item/weapon/pinpointer/operative/proc/workop()
|
||||
scan_for_ops()
|
||||
point_at(nearest_op, 0)
|
||||
spawn(5)
|
||||
.()
|
||||
if(active && nearest_op)
|
||||
spawn(5)
|
||||
.()
|
||||
|
||||
/obj/item/weapon/pinpointer/operative/examine(mob/user)
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user