Update unsorted.dm

This commit is contained in:
kevinz000
2020-01-24 15:59:54 -07:00
committed by GitHub
parent e6e3763705
commit 8f8b6cc4bd
+6 -6
View File
@@ -459,18 +459,18 @@ Turf and target are separate in case you want to teleport some distance from a t
var/list/processing_list = list(src)
if(T)
. = list()
var/i = 1
var/i = 0
while(i < length(processing_list))
var/atom/A = processing_list[i++]
var/atom/A = processing_list[++i]
//Byond does not allow things to be in multiple contents, or double parent-child hierarchies, so only += is needed
//This is also why we don't need to check against assembled as we go along
processing_list += A.contents
if(istype(A,T))
. += A
else
var/i = 1
var/i = 0
while(i < length(processing_list))
var/atom/A = processing_list[i++]
var/atom/A = processing_list[++i]
processing_list += A.contents
return processing_list
@@ -479,9 +479,9 @@ Turf and target are separate in case you want to teleport some distance from a t
return GetAllContents()
var/list/processing = list(src)
. = list()
var/i = 1
var/i = 0
while(i < length(processing))
var/atom/A = processing[i++]
var/atom/A = processing[++i]
if(!ignore_typecache[A.type])
processing += A.contents
. += A