From 3d7339ad42b94cbbaa6686ee788167232ce1d4f5 Mon Sep 17 00:00:00 2001 From: Adrer Date: Fri, 20 Sep 2024 00:34:29 +0200 Subject: [PATCH] [FIX] Unbricks cloning (#26846) * d * 5 Seconds --------- Co-authored-by: adrermail@gmail.com --- code/game/machinery/computer/cloning.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm index bad24ecf9249..063db8a2a9f5 100644 --- a/code/game/machinery/computer/cloning.dm +++ b/code/game/machinery/computer/cloning.dm @@ -262,6 +262,7 @@ feedback = list("text" = "Scanning occupant! Please wait...", "color" = "good", "scan_succeeded" = FALSE) COOLDOWN_START(src, scancooldown, 10 SECONDS) addtimer(CALLBACK(src, PROC_REF(do_scan), patient_data), 5 SECONDS) + addtimer(VARSET_CALLBACK(src, currently_scanning, FALSE), 5 SECONDS) // ABSOLUTELY make sure this is false at the end of this. return TRUE if("fix_all") @@ -327,6 +328,7 @@ add_fingerprint(usr) /obj/machinery/computer/cloning/proc/do_scan(datum/cloning_data/patient_data) + currently_scanning = FALSE if(!scanner?.occupant) return @@ -355,6 +357,5 @@ feedback = list("text" = "Successfully scanned the patient.", "color" = "good", "scan_succeeded" = TRUE) desired_data = generate_healthy_data(scan) - currently_scanning = FALSE #undef TAB_MAIN #undef TAB_DAMAGES_BREAKDOWN