eswordthecat
2014-12-28 08:51:14 +08:00
parent f67e880b4d
commit 9aa6e9d87e
4 changed files with 12 additions and 19 deletions

View File

@@ -317,6 +317,10 @@ proc/listclearnulls(list/list)
return (result + L.Copy(Li, 0))
return (result + R.Copy(Ri, 0))
/proc/find_record(field, value, list/L)
for(var/datum/data/record/R in L)
if(R.fields[field] == value)
return R
//Move a single element from position fromIndex within a list, to position toIndex
//This will preserve associations ~Carnie
@@ -396,8 +400,3 @@ proc/listclearnulls(list/list)
L.Swap(start++,end--)
return L
/proc/find_record(field, value, list/L)
for(var/datum/data/record/R in L)
if(R.fields[field] == value)
return R