Fixes the baseturf bad arg runtime and fixes the jumpToNullSpace proc

This commit is contained in:
CitadelStationBot
2017-07-19 04:05:53 -05:00
parent c294d781b6
commit 0b7d08d5ac
9 changed files with 45 additions and 48 deletions
+3 -4
View File
@@ -89,13 +89,12 @@
return
//returns a new list with only atoms that are in typecache L
/proc/typecache_filter_list(list/atoms, list/typecache, reversed=FALSE)
//if reversed, return a new list with only atoms that aren't in typecache L
/proc/typecache_filter_list(list/atoms, list/typecache, reversed)
. = list()
for (var/thing in atoms)
var/atom/A = thing
if (typecache[A.type] && !reversed)
. += A
else if(reversed)
if(typecache[A.type] != reversed) //This assumes typecache[A.type] is either null or TRUE. God help you if it's FALSE
. += A
//Like typesof() or subtypesof(), but returns a typecache instead of a list