Unbreaks turf.empty (#2053)
This commit is contained in:
committed by
kevinz000
parent
fa9e1577ec
commit
556a8b7216
@@ -89,11 +89,13 @@
|
||||
return
|
||||
|
||||
//returns a new list with only atoms that are in typecache L
|
||||
/proc/typecache_filter_list(list/atoms, list/typecache)
|
||||
/proc/typecache_filter_list(list/atoms, list/typecache, reversed=FALSE)
|
||||
. = list()
|
||||
for (var/thing in atoms)
|
||||
var/atom/A = thing
|
||||
if (typecache[A.type])
|
||||
if (typecache[A.type] && !reversed)
|
||||
. += A
|
||||
else if(reversed)
|
||||
. += A
|
||||
|
||||
//Like typesof() or subtypesof(), but returns a typecache instead of a list
|
||||
|
||||
Reference in New Issue
Block a user