Minor telecom code cleanup (#1691)
This commit is contained in:
committed by
kevinz000
parent
f4ee87ab5a
commit
30d3a42db6
@@ -48,23 +48,23 @@
|
||||
//Checks if the list is empty
|
||||
/proc/isemptylist(list/L)
|
||||
if(!L.len)
|
||||
return 1
|
||||
return 0
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
//Checks for specific types in a list
|
||||
/proc/is_type_in_list(atom/A, list/L)
|
||||
if(!L || !L.len || !A)
|
||||
return 0
|
||||
return FALSE
|
||||
for(var/type in L)
|
||||
if(istype(A, type))
|
||||
return 1
|
||||
return 0
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
//Checks for specific types in specifically structured (Assoc "type" = TRUE) lists ('typecaches')
|
||||
/proc/is_type_in_typecache(atom/A, list/L)
|
||||
if(!L || !L.len || !A)
|
||||
|
||||
return 0
|
||||
return FALSE
|
||||
if(ispath(A))
|
||||
. = L[A]
|
||||
else
|
||||
@@ -76,7 +76,7 @@
|
||||
return
|
||||
for(var/V in L)
|
||||
if(string == V)
|
||||
return 1
|
||||
return TRUE
|
||||
return
|
||||
|
||||
//Removes a string from a list
|
||||
|
||||
Reference in New Issue
Block a user