From 32803f1cd1cbf2cae8dbb55e6a35ec9818bdd2f5 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Sat, 12 Mar 2022 13:54:18 -0800 Subject: [PATCH] Makes should_do_equalization actually work --- code/controllers/subsystem/air.dm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/code/controllers/subsystem/air.dm b/code/controllers/subsystem/air.dm index 7329dd653f..3bab2bfdf3 100644 --- a/code/controllers/subsystem/air.dm +++ b/code/controllers/subsystem/air.dm @@ -396,12 +396,15 @@ SUBSYSTEM_DEF(air) */ /datum/controller/subsystem/air/proc/run_delay_heuristics() - if(!equalize_enabled) - cost_equalize = 0 - if(should_do_equalization) - eq_cooldown-- - if(eq_cooldown <= 0) - equalize_enabled = TRUE + if(should_do_equalization) + if(!equalize_enabled) + cost_equalize = 0 + if(should_do_equalization) + eq_cooldown-- + if(eq_cooldown <= 0) + equalize_enabled = TRUE + else + equalize_enabled = FALSE var/total_thread_time = cost_turfs + cost_equalize + cost_groups + cost_post_process if(total_thread_time) var/wait_ms = wait * 100