Skip to content

Commit

Permalink
[FIX] Unbricks cloning (#26846)
Browse files Browse the repository at this point in the history
* d

* 5 Seconds

---------

Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
  • Loading branch information
Adrer and adrermail@gmail.com authored Sep 19, 2024
1 parent 37f1a20 commit 3d7339a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/machinery/computer/cloning.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 3d7339a

Please sign in to comment.