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:
Krausus
2015-05-14 07:05:20 -04:00
parent e9c32eefbe
commit a45bf57247
+5 -2
View File
@@ -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)
..()