From 034a6403daebec9e15ad5de99858e859483ced97 Mon Sep 17 00:00:00 2001 From: Gatchapod <20936555+Gatchapod@users.noreply.github.com> Date: Mon, 29 Aug 2022 23:01:52 +0200 Subject: [PATCH] More positions for body scanners and sleepers when using a wrench (#18815) * Adds positions to sleepers and scanners * Requested changes Co-authored-by: Gatchapod --- code/game/machinery/Sleeper.dm | 9 ++------- code/game/machinery/adv_med.dm | 6 ++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm index c0c5850768a..90fa6f38fa6 100644 --- a/code/game/machinery/Sleeper.dm +++ b/code/game/machinery/Sleeper.dm @@ -12,7 +12,6 @@ density = TRUE anchored = TRUE dir = WEST - var/orient = "LEFT" // "RIGHT" changes the dir suffix to "-r" var/mob/living/carbon/human/occupant = null var/possible_chems = list("ephedrine", "salglu_solution", "salbutamol", "charcoal") var/emergency_chems = list("ephedrine") // Desnowflaking @@ -383,12 +382,8 @@ if(panel_open) to_chat(user, "Close the maintenance panel first.") return - if(dir == EAST) - orient = "LEFT" - setDir(WEST) - else - orient = "RIGHT" - setDir(EAST) + + setDir(turn(dir, -90)) /obj/machinery/sleeper/ex_act(severity) if(filtering) diff --git a/code/game/machinery/adv_med.dm b/code/game/machinery/adv_med.dm index ba28f9ca7ae..f42d640dd92 100644 --- a/code/game/machinery/adv_med.dm +++ b/code/game/machinery/adv_med.dm @@ -103,10 +103,8 @@ if(panel_open) to_chat(user, "Close the maintenance panel first.") return - if(dir == EAST) - setDir(WEST) - else - setDir(EAST) + + setDir(turn(dir, -90)) /obj/machinery/bodyscanner/MouseDrop_T(mob/living/carbon/human/H, mob/user) if(!istype(H))