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

View File

@@ -1,5 +1,3 @@
GLOBAL_LIST_BOILERPLATE(all_items, /obj/item)
/obj/item
name = "item"
icon = 'icons/obj/items.dmi'
@@ -595,7 +593,7 @@ var/list/global/slot_flags_enumeration = list(
I.Blend(new /icon('icons/effects/blood.dmi', "itemblood"),ICON_MULTIPLY) //adds blood and the remaining white areas become transparant
//not sure if this is worth it. It attaches the blood_overlay to every item of the same type if they don't have one already made.
for(var/obj/item/A in all_items)
for(var/obj/item/A in world)
if(A.type == type && !A.blood_overlay)
A.blood_overlay = image(I)

View File

@@ -1,5 +1,3 @@
GLOBAL_LIST_BOILERPLATE(all_objs, /obj)
/obj
layer = OBJ_LAYER
plane = OBJ_PLANE