Puts holopads on their own list in SSmachines, reduces searching through all machines, frequently, while the UI is open.

This commit is contained in:
mikomyazaki
2022-02-11 17:13:02 +00:00
parent 3bf4c4ba97
commit 357246a115
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -213,7 +213,7 @@
..()
for(var/obj/machinery/computer/ship/S in SSmachinery.all_machines)
S.attempt_hook_up(src)
for(var/obj/machinery/hologram/holopad/H in SSmachinery.all_machines)
for(var/obj/machinery/hologram/holopad/H as anything in SSmachinery.all_holopads)
H.attempt_hook_up(src)
for(var/datum/ship_engine/E in ship_engines)
if(check_ownership(E.holder))