Minor telecom code cleanup (#1691)

This commit is contained in:
CitadelStationBot
2017-06-20 07:58:53 -07:00
committed by kevinz000
parent f4ee87ab5a
commit 30d3a42db6
7 changed files with 38 additions and 64 deletions
+7 -7
View File
@@ -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