diff --git a/baystation12.dme b/baystation12.dme
index 677397a248c..3d156afe557 100644
--- a/baystation12.dme
+++ b/baystation12.dme
@@ -356,7 +356,6 @@
#include "code\defines\procs\logging.dm"
#include "code\defines\procs\religion_name.dm"
#include "code\defines\procs\station_name.dm"
-#include "code\defines\procs\statistics.dm"
#include "code\defines\procs\syndicate_name.dm"
#include "code\defines\procs\time_stamp.dm"
#include "code\defines\sd_procs\base64.dm"
diff --git a/code/WorkInProgress/SkyMarshal/Ultralight.dm b/code/WorkInProgress/SkyMarshal/Ultralight.dm
index dadc5c2ec2d..1f992cff63b 100644
--- a/code/WorkInProgress/SkyMarshal/Ultralight.dm
+++ b/code/WorkInProgress/SkyMarshal/Ultralight.dm
@@ -214,7 +214,7 @@ atom/proc/ul_BlankLocal()
var/TurfAdjust = isturf(src) ? 1 : 0
for(var/atom/Affected in view(ul_TopLuminosity, src))
- if(ul_IsLuminous(Affected) && Affected.ul_Extinguished == UL_I_LIT && (ul_FalloffAmount(Affected) <= Affected.luminosity + TurfAdjust))
+ if(ul_IsLuminous(Affected) && Affected.ul_Extinguished == UL_I_LIT && (ul_FalloffAmount(Affected) <= ul_Luminosity(Affected) + TurfAdjust))
Affected.ul_Extinguish()
Blanked += Affected
diff --git a/code/datums/ai_laws.dm b/code/datums/ai_laws.dm
index 5f68402197f..abc41257458 100644
--- a/code/datums/ai_laws.dm
+++ b/code/datums/ai_laws.dm
@@ -93,8 +93,9 @@
src.inherent = list()
/datum/ai_laws/proc/add_supplied_law(var/number, var/law)
- while (src.supplied.len < number + 1)
- src.supplied += ""
+// while (src.supplied.len < number + 1)
+// src.supplied += ""
+//Infinite loop
src.supplied[number + 1] = law
diff --git a/code/datums/helper_datums/construction_datum.dm b/code/datums/helper_datums/construction_datum.dm
index 7c2fabbc9b8..e3f64704143 100644
--- a/code/datums/helper_datums/construction_datum.dm
+++ b/code/datums/helper_datums/construction_datum.dm
@@ -46,11 +46,11 @@
proc/check_all_steps(atom/used_atom,mob/user as mob) //check all steps, remove matching one.
for(var/i=1;i<=steps.len;i++)
- var/list/L = steps[i];
+ var/list/L = steps[i]
if(istype(used_atom, L["key"]))
if(custom_action(i, used_atom, user))
- steps[i]=null;//stupid byond list from list removal...
- listclearnulls(steps);
+ steps[i]=null//stupid byond list from list removal...
+ steps.Remove(null)
if(!steps.len)
spawn_result()
return 1
diff --git a/code/datums/helper_datums/teleport.dm b/code/datums/helper_datums/teleport.dm
index b6aecf27c81..f157909ff62 100644
--- a/code/datums/helper_datums/teleport.dm
+++ b/code/datums/helper_datums/teleport.dm
@@ -172,7 +172,8 @@
if(istype(teleatom, /obj/item/weapon/disk/nuclear)) // Don't let nuke disks get teleported --NeoFite
teleatom.visible_message("\red The [teleatom] bounces off of the portal!")
return 0
- if(!isemptylist(teleatom.search_contents_for(/obj/item/weapon/disk/nuclear)))
+ var/list/temp = teleatom.search_contents_for(/obj/item/weapon/disk/nuclear)
+ if(temp.len)
if(istype(teleatom, /mob/living))
var/mob/living/MM = teleatom
MM.visible_message("\red The [MM] bounces off of the portal!","\red Something you are carrying seems to be unable to pass through the portal. Better drop it if you want to go through.")
diff --git a/code/defines/procs/helpers.dm b/code/defines/procs/helpers.dm
index 36b2f8e52c0..341d5944b5a 100644
--- a/code/defines/procs/helpers.dm
+++ b/code/defines/procs/helpers.dm
@@ -1152,17 +1152,6 @@ proc/islist(list/list)
return 1
return 0
-proc/isemptylist(list/list)
- if(!list.len)
- return 1
- return 0
-
-proc/listclearnulls(list/list)
- if(istype(list))
- while(null in list)
- list -= null
- return
-
/atom/proc/GetAllContents(searchDepth = 5)
var/list/toReturn = list()
diff --git a/code/game/communications.dm b/code/game/communications.dm
index 012fe5419ec..015a56d871f 100644
--- a/code/game/communications.dm
+++ b/code/game/communications.dm
@@ -240,9 +240,8 @@ datum/radio_frequency
for (var/devices_filter in devices)
var/list/devices_line = devices[devices_filter]
devices_line-=device
- while (null in devices_line)
- devices_line -= null
- if (devices_line.len==0)
+ devices_line.Remove(null)
+ if (!devices_line.len)
devices -= devices_filter
del(devices_line)
diff --git a/code/game/gamemodes/gameticker.dm b/code/game/gamemodes/gameticker.dm
index 83281a5894c..17117546896 100644
--- a/code/game/gamemodes/gameticker.dm
+++ b/code/game/gamemodes/gameticker.dm
@@ -136,9 +136,9 @@ var/datum/roundinfo/roundinfo = new()
//Start master_controller.process()
spawn master_controller.process()
- if (config.sql_enabled)
- spawn(3000)
- statistic_cycle() // Polls population totals regularly and stores them in an SQL DB -- TLE
+// if (config.sql_enabled)
+// spawn(3000)
+// statistic_cycle() // Polls population totals regularly and stores them in an SQL DB -- TLE
return 1
/datum/controller/gameticker
diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm
index 0dc206a0085..151b75843be 100644
--- a/code/game/machinery/newscaster.dm
+++ b/code/game/machinery/newscaster.dm
@@ -174,7 +174,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //list that will contain r
dat+="