Optimize the fuck out of using checks in machines.

This commit is contained in:
Rob Nelson
2014-06-05 16:16:27 -04:00
committed by ZomgPonies
parent 784461540e
commit 5649e2c34d
2 changed files with 35 additions and 28 deletions
@@ -23,7 +23,6 @@
if (!target)
usr.unset_machine()
usr.reset_view(usr)
src.in_use = 0
return
for (var/obj/machinery/camera/C in cameras)
if (C.c_tag == target)
@@ -34,10 +33,8 @@
usr.client.eye = target
usr.set_machine(src)
src.current = target
src.in_use = 1
else
usr.unset_machine()
src.in_use = 0
return
/obj/item/device/handtv/check_eye(var/mob/usr as mob)