Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thgvr committed Feb 20, 2024
1 parent cc62937 commit d3f7bb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/game/machinery/medical/_medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

/obj/machinery/medical/Destroy()
STOP_PROCESSING(SSmachines, src)
clear_status()
return ..()

/obj/machinery/medical/wrench_act(mob/living/user, obj/item/I)
Expand Down
5 changes: 5 additions & 0 deletions code/game/machinery/medical/life_support.dm
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
soundloop_flatline.stop()

switch(attached.health)
if(attached.stat == DEAD)
soundloop_flatline.start()
soundloop_ekg.stop()
soundloop_ekg_slow.stop()
soundloop_ekg_fast.stop()
if(-INFINITY to HEALTH_THRESHOLD_DEAD)
soundloop_flatline.start()
soundloop_ekg_slow.stop()
Expand Down

0 comments on commit d3f7bb1

Please sign in to comment.