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

@@ -184,7 +184,7 @@
switch(action_type)
if("Strict type")
var/i = 0
for(var/obj/Obj in all_objs)
for(var/obj/Obj in world)
if(Obj.type == O_type)
i++
qdel(Obj)
@@ -195,7 +195,7 @@
message_admins("<span class='notice'>[key_name(usr)] deleted all objects of type [O_type] ([i] objects deleted)</span>")
if("Type and subtypes")
var/i = 0
for(var/obj/Obj in all_objs)
for(var/obj/Obj in world)
if(istype(Obj,O_type))
i++
qdel(Obj)