Merge pull request #5304 from VOREStation/vplk-reverse-all_atoms

Reverse use of global lists where they hurt performance.
This commit is contained in:
Atermonera
2018-05-28 12:40:40 -07:00
committed by Leshana
parent 27a5fc3965
commit 5c4bde965a
13 changed files with 25 additions and 33 deletions
+3 -3
View File
@@ -115,7 +115,7 @@
from_objs += m
else if(text_starts_with(f, "/obj/item"))
for(var/obj/item/m in all_items)
for(var/obj/item/m in world)
if(istype(m, f2))
from_objs += m
@@ -125,12 +125,12 @@
from_objs += m
else if(text_starts_with(f, "/obj"))
for(var/obj/m in all_objs)
for(var/obj/m in world)
if(istype(m, f2))
from_objs += m
else if(text_starts_with(f, "/atom"))
for(var/atom/m in all_atoms)
for(var/atom/m in world)
if(istype(m, f2))
from_objs += m
/*