From 7a0c43e492480ed93b94b10b6a88ed01ba4596ee Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Mon, 17 Jul 2017 02:53:50 -0500 Subject: [PATCH] Makes GetAllContents faster. (#2036) --- code/__HELPERS/unsorted.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 8e343415f1..b743907982 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -499,9 +499,7 @@ Turf and target are seperate in case you want to teleport some distance from a t var/atom/A = processing_list[1] processing_list -= A - for(var/atom/a in A) - if(!(a in assembled)) - processing_list |= a + processing_list |= (A.contents - assembled) assembled |= A