Removes removeNullsFromList, cause it doesn't work.

This commit is contained in:
Putnam
2020-09-24 01:15:22 -07:00
parent 0e867f37e6
commit 6f6e330984
3 changed files with 2 additions and 8 deletions
-6
View File
@@ -553,12 +553,6 @@
if(D.vars[varname] == value)
return D
//remove all nulls from a list
/proc/removeNullsFromList(list/L)
while(L.Remove(null))
continue
return L
//Copies a list, and all lists inside it recusively
//Does not copy any other reference type
/proc/deepCopyList(list/l)
@@ -206,7 +206,7 @@
. = other_airs + air
if(null in .)
stack_trace("[src]([REF(src)]) has one or more null gas mixtures, which may cause bugs. Null mixtures will not be considered in reconcile_air().")
return removeNullsFromList(.)
return listclearnulls(.)
/datum/pipeline/proc/reconcile_air()
var/list/datum/gas_mixture/GL = list()
+1 -1
View File
@@ -64,7 +64,7 @@
originMachine.visible_message("[originMachine] beeps and seems lifeless.")
kill()
return
vendingMachines = removeNullsFromList(vendingMachines)
vendingMachines = listclearnulls(vendingMachines)
if(!vendingMachines.len) //if every machine is infected
for(var/obj/machinery/vending/upriser in infectedMachines)
if(prob(70) && !QDELETED(upriser))